18,035 reputation
13664
bio website
location United States
age
visits member for 2 years, 8 months
seen 14 hours ago

Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.


Dec
11
awarded  Nice Answer
Dec
11
comment Passing options to subcommands in bash
Option parsing is a very FAQ. The wooledge link from @jordanm is a great resource. See also this related question.
Dec
6
awarded  shell-script
Dec
5
answered Piping data to a process's stdin without causing EOF afterward
Dec
2
reviewed Edit suggested edit on What does Grep */* mean in KSH
Dec
2
revised What does Grep */* mean in KSH
Corrected English
Dec
2
answered What does Grep */* mean in KSH
Nov
27
comment Guess complete filename
There is also tab-completion. Have you tried typing some_file_1 followed by tab?
Nov
27
revised “grep: Unmatched [” error when using regex
added 335 characters in body
Nov
27
answered “grep: Unmatched [” error when using regex
Nov
26
comment How can I force sed to continue parsing when it hits an “invalid” character?
Your question wording is misleading and unclear. As your example demonstrates, sed parsed the input just fine since you got the .mp3 which came after the questionable characters. Your real question is "Why doesn't . match � in a sed regex, and how do I match �?". Then, it becomes obvious that the real question is what on earth "�" is. I second glennjackman's suggestion - run od on the input. Also what is your shell's locale (echo $LANG)? In all likelihood running LANG=C sed will probably work.
Nov
22
answered Creating a file counter that includes hidden files
Nov
20
comment If I open the same file twice in Okular, switch to the existing window
I believe this behavior is application-specific. Each application is coded differently. Some will check for existing opened instances while others behave as independent standalone processes. As a result, your current question is too general to be answered. You should either ask if there is a way to make okular do as you describe, or if there exists a PDF reader for Linux that behaves as you describe.
Nov
20
comment Script is stuck saying 1 response with 2 available: Math related
The if then snippet you posted should work fine - only one branch should ever execute. Are you sure you pasted it exactly as is?
Nov
18
reviewed Leave Open df showing same usage statistics for different mounts
Oct
29
awarded  Enlightened
Oct
29
awarded  Nice Answer
Oct
10
comment Ignore “other” domains when downloading with wget?
Something is wrong here. wget should not cross hosts by default, and you need the -H/--span-hosts option to cross hosts when doing a recursive wget. "www.website.com" is a completely different host from "www.website.de".
Oct
10
comment Why is sort -o useful?
@uprego neither sponge nor moreutils were actually created by GNU.
Oct
10
comment Why is sort -o useful?
Just to play devil's advocate, there are actually alternatives to both the "input file is same as output file" problem and "privileged redirection" problem, and both alternatives are more in the spirit of "do one thing well". For "input = output", there is sponge (part of moreutils). For privileged redirection there is piping to | sudo tee, which also has the benefit of limiting privilege escalation to a single simple program, tee.