Related
constant fun I am running a VM with Ubuntu. In a very simple script I wrote to define the shebang as: #!/bin/zsh However, zshit also exists in /usr/bin/zsh. Does it matter which path I use? Rusty Shackford I hope you'll find this /usr/bin/zshis a symlink to /b
constant fun I am running a VM with Ubuntu. In a very simple script I wrote to define the shebang as: #!/bin/zsh However, zshit also exists in /usr/bin/zsh. Does it matter which path I use? Rusty Shackford I hope you'll find this /usr/bin/zshis a symlink to /b
Vkkodali I'm writing a snakemake rule that uses multiple commands like this: rule RULE1:
input: 'path/to/input.file'
output: 'path/to/output.file'
shell: 'path/to/command1 {input} | /path/to/command2 | /path/to/command3 {output}'
If /path/to/command1it'
Vkkodali I'm writing a snakemake rule that uses multiple commands like this: rule RULE1:
input: 'path/to/input.file'
output: 'path/to/output.file'
shell: 'path/to/command1 {input} | /path/to/command2 | /path/to/command3 {output}'
If /path/to/command1it'
Vkkodali I'm writing a snakemake rule that uses multiple commands like this: rule RULE1:
input: 'path/to/input.file'
output: 'path/to/output.file'
shell: 'path/to/command1 {input} | /path/to/command2 | /path/to/command3 {output}'
If /path/to/command1it'
Vkkodali I'm writing a snakemake rule that uses multiple commands like this: rule RULE1:
input: 'path/to/input.file'
output: 'path/to/output.file'
shell: 'path/to/command1 {input} | /path/to/command2 | /path/to/command3 {output}'
If /path/to/command1it'
Rob Segal: If I have a shell script where I can use "../" to get the parent folder, can it be expanded to its absolute path? Ignacio Vazquez-Abrams: you want readlink -f. $ cd /tmp
$ readlink -f ..
/
Rob Segal: If I have a shell script where I can use "../" to get the parent folder, can it be expanded to its absolute path? Ignacio Vazquez-Abrams: you want readlink -f. $ cd /tmp
$ readlink -f ..
/
Rob Segal: If I have a shell script where I can use "../" to get the parent folder, can it be expanded to its absolute path? Ignacio Vazquez-Abrams: you want readlink -f. $ cd /tmp
$ readlink -f ..
/
srinivasan I use the following shell script, INBOX=/home/tmp/
for fileName in $INBOX"abc*.csv"
do
echo $fileName
done
**output:**
/home/tmp/abc1.csv
/home/tmp/abc2.csv
**Expected output:**
abc1.csv
ab
Guoliang Cao I'm looking for a way to access the full command from a shell script, e.g. Suppose I have a script called test.sh. When I run it, the command line is passed to ruby as is (except the script itself is removed). $ test.sh print ENV['HOME']
equivale
Guoliang Cao I'm looking for a way to access the full command from a shell script, e.g. Suppose I have a script called test.sh. When I run it, the command line is passed to ruby as is (except the script itself is removed). $ test.sh print ENV['HOME']
equivale
quality manager In the answer to this question about comments in shell scripting , it is indicated that is an empty command, which explicitly does nothing (but is not used for comments).: What's the use of a command that does nothing? mad scientist I usually u
username Is it possible to get the full path of the current working directory using a Windows command line command? Also, how can I store that path in a variable used in the batch file? Trevor Bramber Use cdit without arguments if you are using the shell direc
username Is it possible to get the full path of the current working directory using a Windows command line command? Also, how can I store that path in a variable used in the batch file? Trevor Bramber Use cdit without arguments if you are using the shell direc
Kevin I often see #!/usr/bin/env bashthis on the first line of shell scripts . It seems fine to ignore /usr/bin/macOS : #!env bash
echo Yo
Can I do this on all other Unix-like platforms? Erki Arlin Using an interpreter without a full path is not supported ev
pilot mainFile=$(find /home/INVENT/custREAD -name '*.txt.gz' -type f -mmin 300)
I am using the above line in my shell script to get the file with today's date from the location /home/INVENT/custREAD and put it into the variable mainFile But when I echo this v
Ayy Lmao I searched everywhere but couldn't find any answer. I want the savetofile path to be on the desktop regardless of the username. but i get an error. I think this is the path causing the error. Is there a tip? dim xHttp: Set xHttp = createobject("Micros
Ayy Lmao I searched everywhere but couldn't find any answer. I want the savetofile path to be on the desktop regardless of the username. but i get an error. I think this is the path causing the error. Is there a tip? dim xHttp: Set xHttp = createobject("Micros
Tai Wo Shan I'm trying to get my Python script to run directly by typing the filename into the Windows Run dialog, but I haven't been able to do it efficiently. After reading an automatic book on Python, I have two simple scripts: one is a clipboard that shoul
Tai Wo Shan I'm trying to get my Python script to run directly by typing the filename into the Windows Run dialog, but I haven't been able to do it efficiently. After reading an automatic book on Python, I have two simple scripts: one is a clipboard that shoul
Tai Wo Shan I'm trying to get my Python script to run directly by typing the filename into the Windows Run dialog, but I haven't been able to do it efficiently. After reading an automatic book on Python, I have two simple scripts: one is a clipboard that shoul
shepherd I can start the exe by specifying the path to the exe c:\> "c:\program files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe", now trying to do the following start: c:\> start /separate "c:\program files (x86)\Microsoft Visual Stu
username I want to execute a shell script without having to specify any other parameters on the command line itself. Instead, I would like to hardcode parameters such as input filename and filepath in the shell script. toy shell script: #!/bin/bash
time pytho
Cui Pengfei When I try to run the shell command on the Mac it works as expected like this: scala> import scala.sys.process._
import scala.sys.process._
scala> """protractor --version"""!
warning: there were 1 feature warning(s); re-run with -feature for detai
nuclear programmer Problem with nested controls of ItemItems when the DataContext of the outermost control changes. The internal controls seem to have been updated to reflect the new DataContext, but it's like some "Ghost" bindings are still bound to the old D
nuclear programmer Problem with nested controls of ItemItems when the DataContext of the outermost control changes. The internal controls seem to have been updated to reflect the new DataContext, but it's like some "Ghost" bindings are still bound to the old D
newbie In a shell script, what's a faster or more efficient way to first Cd into a directory and then execute the command or write the full path? For example: it is better to write cd /directory1/then then mkdir subdirectory/or mkdir /directory1/subdirectory/.
newbie In a shell script, what's a faster or more efficient way to first Cd into a directory and then execute the command or write the full path? For example: it is better to write cd /directory1/then then mkdir subdirectory/or mkdir /directory1/subdirectory/.