3,978 reputation
1622
bio website
location
age
visits member for 1 years, 9 months
seen 15 mins ago

The placid Indian water buffalo


3h
reviewed Reject suggested edit on Extract data in linux/unix
5h
reviewed Approve suggested edit on Systemd: cause a script to execute *after* networking has started?
5h
comment Extract data in linux/unix
UUOC alert
8h
reviewed Approve suggested edit on Is making /var/log directory read only on debian linux safe?
1d
comment Sorting by Last Name in the Scond Column
have you tried sort -k2,2 addresses.txt?
1d
reviewed Approve suggested edit on Is it possible to feed Open Office via STDIN?
1d
reviewed Approve suggested edit on convert to epoch and back
1d
reviewed Approve suggested edit on What does “--” (double-dash) mean? (also known as “bare double dash”)
2d
reviewed Approve suggested edit on Illegal float value “error” c-shell
2d
reviewed Approve suggested edit on How to put Mac OS X wireless adapter in monitor mode
Apr
19
comment How to find files containing two strings in different lines
The OP's trying to change a function name in the file that defines the function and propagate the change to other files that contain references to the function. A blanket s/foo/bar/g replace would play badly with this situation in case the text foo is itself embedded inside other function names
Apr
19
comment How to find files containing two strings in different lines
What if one of the OP's functions is named damned_fools
Apr
19
comment How to find files containing two strings in different lines
What if one of the OP's functions is named damned_fools?
Apr
19
comment How to find files containing two strings in different lines
edited your question to eliminate potential confusion between literal text you would like to search for and their regex representations. If you disagree roll back - thanks
Apr
19
revised How to find files containing two strings in different lines
added 56 characters in body
Apr
19
comment Printing in awk up to specific line and 5 more results
@HaukeLaging, you are probably right, amended answer. I usually get upbraided on SO for being too verbose with awk but when it comes to newbies i see your point
Apr
19
comment Printing in awk up to specific line and 5 more results
@Intermd11, awk "NR==1,/For What It's Worth/{print;next};c++<5{print}" file should take care of it
Apr
19
revised Printing in awk up to specific line and 5 more results
added 7 characters in body
Apr
19
answered Printing in awk up to specific line and 5 more results
Apr
18
reviewed Approve suggested edit on Desktop appears as a terminal when viewed via VNCserver client