Reputation
3,884
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 12 19
Newest
 Enlightened
Impact
~222k people reached

Apr
17
comment echo $SHELL: unexpected result
What do you mean by "change shell"?
Apr
14
comment Bash syntax error near unexpected token when trying to export
Restore it from the backup.
Apr
14
comment Bash syntax error near unexpected token when trying to export
It seems the file is invalid. A part of it was probably overwritten: the case $TERM doesn't have a corresponding esac.
Apr
14
comment Bash syntax error near unexpected token when trying to export
Where does the first case have its esac?
Apr
10
answered Zenity and bash
Apr
6
answered String replacement with iterator
Apr
3
comment How can I check why diff command failed?
What did the last line of the stderr say? I usually see something like diff: /xyz: Permission denied when getting the exit status of 2.
Mar
8
comment Filter for a specific paragraph in man pages
@muru: added as askubuntu.com/a/743536/80864
Mar
8
answered How to find specific switch in man page
Mar
8
comment Filter for a specific paragraph in man pages
man rm | perl -00 -ne 'print if /hierarchy/' gives you the whole paragraph regardless of its size.
Mar
5
comment Problem with if statement: Syntax error: “fi” unexpected (expecting “then”
Try running the script with set -xv to see what it executes.
Feb
18
comment Remove everything before first occurence of specified word
Can you show an example of what needs to be removed?
Feb
14
comment Bash - for loop help needed please
stackoverflow.com/q/35391808/1030675
Feb
9
comment Odd Illegal Variable Name error in csh script
Don't link to files. Paste the relevant code here and format it as code by pressing Ctrl+K.
Feb
5
answered Interpreting !12 as string and not as terminal history
Feb
4
comment Bash - Check directory for files against list of partial file names
@Arronical: It's possible, but you'll have to remove the path from the string, possible with file=${file##*/}.
Feb
4
comment Print a String on Its Own Place in Unix Shell
@JacobVlijm: I can't imagine processing text files with fonts in bash.
Feb
4
comment Bash - Check directory for files against list of partial file names
@terdon: The main difference is this works :-) The wildcard expansion is done just once, not every time you read a line from the list, which might be faster, too.
Feb
4
answered Bash - Check directory for files against list of partial file names
Jan
29
awarded  Enlightened