Reputation
17,607
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
4 40 80
Newest
 Announcer
Impact
~1.4m people reached

Apr
19
comment Using grep with a pattern that contains a variable to be expanded
Can the variable only match the end of the string? If so, you could use grep's -F option. You just can't specify "at the end" with that.
Mar
30
awarded  Announcer
Mar
25
comment Have the ls command behave differently based on the number of entries
Might be good to have a check for output to a terminal ([[ -t 1 ]]) at the beginning and only use the custom behavior if it is. I have a similar function for grep that adds color and line numbers if and only if output is straight to my terminal.
Mar
10
awarded  Nice Answer
Mar
9
comment Passing a list of two PIDs to xargs only kills the first using ssh
protip: use grep '[f]oo' and you don't need the | grep -v grep.
Feb
27
awarded  Guru
Feb
17
awarded  Good Answer
Jan
13
comment Recursive Function not Working
@Jakuje shell scripting is on-topic here, and this sounds like a permissions issue, which is definitely better off here.
Jan
13
comment Recursive Function not Working
You mean so it can see everything? You need to be root (su or sudo), there's no way around that, otherwise permissions would be useless.
Dec
31
comment Rename files based on their parent directory using find/xargs command?
If you're willing to use zsh, zmv '(*)/audio.mp3' '$1.mp3'
Dec
30
awarded  Nice Question
Dec
24
comment C Programming on command line
The .o extension is for object files, which are compiled but not linked (gcc -C, I believe). Your command compiles and links, so just use -o name
Dec
14
reviewed Leave Open Unix calculator.bash having problems
Nov
22
awarded  Nice Answer
Nov
13
awarded  Good Answer
Nov
5
awarded  Guru
Oct
29
awarded  Good Answer
Oct
26
awarded  Enlightened
Oct
26
awarded  Nice Answer
Oct
21
awarded  Yearling