66,036 reputation
863145
bio website
location European Union
age
visits member for 1 year, 7 months
seen 1 hour ago

Apr
3
answered Interpret backspaces in file
Apr
3
revised Create directories from a list of files with spaces in name
added 98 characters in body
Apr
3
answered Delete *.txt files by date between MMDDYYYY and MMDDYYYYY
Apr
3
comment Create directories from a list of files with spaces in name
That fails if filenames contain backslash or newline characters.
Apr
3
answered Create directories from a list of files with spaces in name
Apr
2
comment Scripting Language Evolution
Why the rise? The first HTTP servers were opensource and opensource HTTP servers have always been predominant.
Apr
2
comment grep: match pattern on a particular position
What do you mean by position? Does a TAB character count as one position. What about multi-byte characters?
Apr
2
comment . (dot) shows up as path separator
It's not a path separator. It's just directories named like that (with dots in their names). It's typical of some maildir structures like courier imap server.
Apr
2
revised zsh: How to check if an option is enabled
added 294 characters in body
Apr
2
answered zsh: How to check if an option is enabled
Apr
2
revised Command substitution vs I/O Redirection?
missing quotes, -- and -P.
Apr
2
comment extract the characters before () using grep
Note that the behaviour will differ if there's more than one ( per line.
Apr
2
comment extract the characters before () using grep
Or grep -o '^[^(]*'
Apr
2
revised extract the characters before () using grep
added 4 characters in body
Apr
2
revised extract the characters before () using grep
rolled back to a previous revision
Apr
2
revised extract the characters before () using grep
simplified. Make sure it cuts at the *first* (
Apr
2
comment Redirecting only stderr to a pipe
Other than that, I'm not sure what you're trying to say. The question was about piping ls stderr to grep, leaving its stdout untouched.
Apr
2
comment Redirecting only stderr to a pipe
You don't want to close any of the fd 0, 1 or 2, many commands don't like that. If you want to discard what's written there, redirect to /dev/null instead. (2> /dev/null).
Apr
2
comment Redirecting only stderr to a pipe
>&3 3>&- means dup(3,1);close(3). It makes sense.
Apr
2
revised Redirecting only stderr to a pipe
added 1 characters in body