96,184 reputation
12114239
bio website
location European Union
age
visits member for 2 years, 3 months
seen 5 hours ago

Nov
19
answered How do I grep for multiple patterns on multiple lines?
Nov
19
awarded  find
Nov
18
answered Zero input_file_names in Grep
Nov
18
revised Formatting the output of grep when matching on multiple files
added 226 characters in body
Nov
18
comment Printing filled shapes in terminal
@OlgunKaya You mean like ? Then echo ●
Nov
18
answered Formatting the output of grep when matching on multiple files
Nov
18
revised How to get execution time of a script effectively?
added 576 characters in body
Nov
18
revised How to iterate a zero padded integer in bash?
added 80 characters in body
Nov
18
answered How to iterate a zero padded integer in bash?
Nov
18
answered Is there an easy way to change directories from within one duplicate folder structure to another?
Nov
18
revised Map Return with no other input to an alias
added 2 characters in body
Nov
18
revised Bind right click contect menu to key
edited tags
Nov
18
comment POSIX compliant way to work with a list of filenames possibly with whitespace
IFS="\n" splits on backslash and n characters. But in read file, there's no splitting. IFS="\n" is still useful in that it removes the blank characters from $IFS which otherwise would have been stripped at the beginning and end of the input. To read a line, the canonical syntax is IFS= read -r line, though IFS=anything read -r line (provided anything doesn't contain blanks) will work as well.
Nov
18
revised POSIX compliant way to work with a list of filenames possibly with whitespace
`for file; do` is not Bourne nor POSIX. `for file do` is.
Nov
18
revised How to sort filenames with spaces in them and concatenate the files?
some broken ls implementations need -1. -d as you don't want to list the content of directories. You need -- to mark the end of options.
Nov
18
awarded  cat
Nov
17
comment How to open terminal, split to 9 terminals and switch between them using one script?
terminator is not a shell. There are two different terminal emulators called terminator (only one of which I believe can split the screen).
Nov
17
comment Is test or [ or [[ more portable both between bash shells and between other shells?
You want cd /some/directory && rm -rf -- * or cd /some/directory || exit; rm -rf -- * (still doesn't remove hidden files). I personally don't like the idea of using set -e as an excuse not to make an effort to write correct code.
Nov
17
comment Is test or [ or [[ more portable both between bash shells and between other shells?
No a failing foo will not abort the script in either case. That's a special case for set -e (when the command is evaluated as a condition (to the left of some &&/|| or in if/while/until/elsif... conditions). A failing bar would exit the shell in both cases.
Nov
17
revised Is test or [ or [[ more portable both between bash shells and between other shells?
added 162 characters in body