Reputation
30,282
Next tag badge:
98/100 score
40/20 answers
Badges
4 41 85
Impact
~1.7m people reached

9h
answered Trying to direct variable contents into command gives Ambigious Redirect
9h
comment Trying to direct variable contents into command gives Ambigious Redirect
In general if you have such problems then you should create a working command line.
10h
answered Using iptables instead of ARP resolution
11h
answered resolve bind mounts with a shell tool/script
19h
comment Alias for listing top file and directory consumption - shortest way?
That is case-sensitive.
1d
comment bash : multiple command on one line with different exit code
@PinkFloyd ${?#1} is in double quotes ("") not in single quotes ('') thus it is expanded as part of the eval command line i.e. before eval is executed and thus refers to the previous command.
1d
comment bash : multiple command on one line with different exit code
@PinkFloyd Don't blame yourself. That's a quite unusual way to check the exit code ($?). Even I had to look at that for a while in order to get what it does. It treats the exit code as a string, removes the string 0/1 and checks whether something is left or whether the resulting string is empty. [ "" ] has exit code false. Independent of the string/number handling it is better to check for 0 than for 1 because 0 is the only success exit code but 1 is not the only error exit code.
1d
comment bash : multiple command on one line with different exit code
@mikeserv Wouldn't ! [ "${?#0}" ] make more sense?
1d
comment Read a password securely from within process substitution?
That looks too good to be true thus I would like to point out this: "The processreport command can also prompt for a password, entirely separately from getreport."
1d
answered Alias for listing top file and directory consumption - shortest way?
1d
comment Read a password securely from within process substitution?
@Wildcard Done.
1d
revised Read a password securely from within process substitution?
added 127 characters in body
2d
revised Parameter expansion question
added 1 character in body
2d
answered How do you set a service run as a non user at boot time?
2d
comment How do you set a service run as a non user at boot time?
If it was possible with something you are familiar with then you wouldn't have to ask, would you...?
2d
answered Parameter expansion question
2d
comment Parameter expansion question
I don't understand the sentence "My program says that file '{$f%_1.txt}_2.txt' and I am 100% sure I am incorrectly using parameter expansion.".
2d
revised Bash script for service to check mount before start
added 91 characters in body
2d
answered Run service once a week, not also at boot
2d
comment Run service once a week, not also at boot
@Andrea993 Indeed.