Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 27653

The shell is Unix's command-line interface. You can type commands in a shell interactively, or write scripts to automate tasks. Use this tag for questions applying to /bin/sh and most compatible shells (ash, bash, ksh, zsh, …). For shell scripts with errors, please check them in http://shellcheck.net before posting here.

14
votes
Yes, but... The correct answer of Stéphane Chazelas is based on shell concept of delegating every text operation to specific binaries, like grep, awk, sed and others. As bash is capable of doing a … of server administration tasks, where bash could be used in place of shell, using builtins bash could be very efficient. My meaning: Writting tools like bin utils is not same kind of work than …
answered Aug 5 '16 by F. Hauri
5
votes
Yes, it's a bug. From man page: BUGS Tree does not prune "empty" directories when the -P and -I options are used. Tree prints directories as it comes to them, so cannot accumu‐ late inf …
answered Dec 21 '12 by F. Hauri
1
vote
Terminal fonts In a terminal you have to use so called monospaces fonts, (where a lower caps i use same width than a upper case w): (Thats monospaced fonts: iiiiiiii WWWWWWWW Thats normal fonts: …
answered Jan 21 '16 by F. Hauri
0
votes
bash specific answer: whipe forks! As this already use bashisms, sed, tr or any other external tool are useless: IFS='-' read -r -a host_name_array < <(hostname) #removing the last part of string af …
answered Jan 8 '17 by F. Hauri
3
votes
You may use tee to duplicate command for processing whole stream by many command: ( ( seq 1 10 | tee /dev/fd/5 | sed s/^/line..\ / >&4 ) 5>&1 | wc -l ) 4>&1 line.. 1 line.. 2 line.. 3 line.. 4 line. …
answered Jul 22 '13 by F. Hauri
12
votes
: Try to open two shell console and try this: In 1st console: user@host[pts/1]:~$ touch /tmp/file_{1,2,3} user@host[pts/1]:~$ tail -f /tmp/file_{1,2,3} ==> /tmp/file_1 <== ==> /tmp/file_2 …
answered Jul 22 '13 by F. Hauri
1
vote
outside of a loop. Or use shell-connector bash function: wget https://github.com/F-Hauri/Connector-bash/raw/master/shell_connector.bash or wget https://f-hauri.ch/vrac/shell_connector.sh (Wich are …
answered Feb 12 '17 by F. Hauri