Reputation
30,715
Next tag badge:
991/1000 score
280/200 answers
Badges
1 38 71
Impact
~1.6m people reached

1d
comment how to move set of files in one-liner
don't parse ls
2d
comment Why is nothing shown from variable expansion?
You left the variable unquoted, which means gnu.org/software/bash/manual/bashref.html#Word-Splitting is in effect. Besides, they are just whitespace characters, what did you expect to see?
2d
comment How can I see the whole file and also wait for more data to be added to that file?
@Shadur, it does, that's what the +F option is for
Apr
24
comment Comparing integers: arithmetic expression or conditional expression
you'll have to search in the bash changelogs to find out when each feature was added. I suspect the arithmetic expressions was added much later than the test command.
Apr
23
revised How can I check if a shell is login/interactive/batch in fish?
added 58 characters in body
Apr
23
answered How can I check if a shell is login/interactive/batch in fish?
Apr
23
comment Does the cat command pass back a file or the contents of the file?
@kun, the grep man page says grep [OPTIONS] PATTERN [FILE...] -- that means the only required argument is the pattern. You may provide one or more files, but the square brackets indicate the files are optional. The man page says (the 2nd sentence): "If no files are specified, or if the file “-” is given, grep searches standard input."
Apr
23
answered Using Perl for Even/Odd numbers
Apr
23
comment Using Perl for Even/Odd numbers
I don't understand the sorting requirement. The first perl program outputs the numbers in numerical order. What about that requires sorting?
Apr
22
answered grep all strings that start with a certain char, and finish with another char
Apr
22
answered Move first N lines of output to end without using temporary file
Apr
22
answered Using grep/sort/find to extract unique values
Apr
22
comment Using Perl for Even/Odd numbers
The immediate and obnoxious question is "what have you tried?" You are asking too much if you expect us to do your work for you for free.
Apr
21
answered Can I display GIT in prompt when current directory has a .git folder?
Apr
21
comment Why does the command not exit smoothly?
really what you should do is ls -l *html*
Apr
15
comment “export VAR=thing && someCommand” reports “export: `&&': not a valid identifier”
btw, works with bash v2.03.
Apr
15
comment “export VAR=thing && someCommand” reports “export: `&&': not a valid identifier”
Not answering the question, but you want env, not export -- env VAR=thing someCommand, or with bash, just VAR=thing someCommand
Apr
14
comment Why does `find -size -1G` not find any files?
duplicate of unix.stackexchange.com/q/275925/4667
Apr
12
answered How to swap two words with sed and with multiple delimiters?
Apr
12
comment negation equivalence
Is this intended to be pseudo-code? The shell certainly does not handle this the way you think it does. Hint: it always echoes true