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 questions only user 2343

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.

5
votes
2answers
I don't understand shell expansion fully yet (hopefully, one day soon I will)... I saw this comment to a superuser question, but I think I'm still parked at the kerb... Using Linux without the … shell is like driving a Ferrari at 50 km/h through city traffic. All fun will just go away ... I don't understand the following example.. What heirarchy, or whatever, is causing the 2nd example …
asked Mar 11 '11 by Peter.O
3
votes
2answers
When I use tee to pipe stdout directly to a "specific block of code" (which then writes the modified data to a file), I always get the full complement of exptected output lines in the file. Howeve …
asked Apr 5 '11 by Peter.O
9
votes
2answers
Is this a bug or a feature? It seems to happen for unquoted alphanumerics. Running GNU bash, version 4.1.5 for alpha01234; do echo $((++i)); done output: 1 2 3 4
asked Nov 24 '11 by Peter.O
12
votes
2answers
I might have something absolutely wrong, but it looks convincing to me, that setting IFS as one of the commands in the pre-do/done list has absolutely no effect. The outer IFS (outside the while const …
asked Aug 17 '11 by Peter.O
6
votes
1answer
Aside from the variable expansion mentioned in the question's heading, I also experience another alarming issue when reading inline data to <<EOL... When the data contains a backtick `, it causes an …
asked Apr 16 '11 by Peter.O
7
votes
2answers
In this example I refer to the expansion of a sequence of integers, but perhaps(?) the limits would be relevant to all aspects of brace expansion.. This more general view is also of interest to me. …
asked Feb 28 '11 by Peter.O
2
votes
1answer
, ie. the most recent marker has not been written to the log yet. I assume this is a buffering issue, but I'm in unknown territory with that. Not sure if it matters: The script is elisp. The terminal is emacs terminal emulator with a bash shell. …
asked Dec 10 '11 by Peter.O
10
votes
5answers
Parsing an array using IFS with non-whites space values creates empty elements. Even using tr -s to shrink multiple delims to a single delim isn't enough. An example may explain the issue more clearly …
asked Feb 23 '11 by Peter.O
1
vote
2answers
I'm trying to mark each paragraph of transcripted text with timestamps of when/where it occurs in the audio. mplayer and emacs are getting me close. mplayer, in the terminal, outputs a stream of …
asked Nov 17 '11 by Peter.O
0
votes
1answer
Hopefully the question explains itself well enough. I'm referring to exta time and system resources involved for one vs. the other... I tend to think it would be the same, but I want to go beyond just …
asked Nov 29 '11 by Peter.O
24
votes
5answers
# Output is: 610a62 # The trailing newline from the 'echo' command # has been "deleted" by Command Substitution I assume there must be some very significant reason for a shell action, namely Command …
asked Jul 31 '11 by Peter.O
15
votes
2answers
The following code best describes the situation.  Why is the last line not outputting the trailing newline char?  Each line's output is shown in the comment.  I'm using GNU bash, version 4.1.5 …
asked Jul 31 '11 by Peter.O
29
votes
4answers
I want to use $var in a shell brace expansion with a range, in bash. Simply putting {$var1..$var2} doesn't work, so I went "lateral"... The following works, but it's a bit kludgey. # remove the …
asked Feb 21 '11 by Peter.O
79
votes
4answers
It seems that normal practice would put the setting of IFS outside the while loop in order to not repeat setting it for each iteration... Is this just a habitual "monkey see, monkey do" style, as it h …
asked Aug 17 '11 by Peter.O
72
votes
4answers
Is there any intrinsic difference between a builtin command and another command which can nominally do the same thing? eg. Do builtins get "special" treatement? ... is there less overhead running …
asked Apr 16 '11 by Peter.O

15 30 50 per page