Reputation
55,979
Next tag badge:
92/100 score
23/20 answers
Badges
10 80 156
Newest
 Nice Answer
Impact
~2.5m people reached

Jun
29
comment GNU Find this but not that and do Sed?
@Masi what command did you run? There is no _ there so I don't see how that message could have come from the one I show.
Jun
29
comment GNU Find this but not that and do Sed?
@Masi well, my GNU find can deal with sed -i 's/foo/bar/ * on multiple files correctly (I have edited to use +). I didn't use it at first because I'm not sure that non-GNU sed can do that.
Jun
29
revised GNU Find this but not that and do Sed?
added 198 characters in body
Jun
29
answered GNU Find this but not that and do Sed?
Jun
29
comment GNU Find this but not that and do Sed?
Have you read man find and the -exec section? Did you try this and see the error it returned?
Jun
29
answered Shell script to get common elements from two files
Jun
29
revised Shell script to get common elements from two files
added 183 characters in body
Jun
29
comment Shell script to get common elements from two files
Nick, I deleted your last comment. Telling people to "bloody piss off" is not acceptable behavior and will not be tolerated. Also, please try and write in English and not as Detritius would. That said, your question was completely incomprehensible. I only started to understand what you meant from your last comment. Next time, when asking, include your final objective and show us your desired output.
Jun
29
awarded  Popular Question
Jun
28
comment awk and newlines in the input data
@anthon thanks, fixed.
Jun
28
revised awk and newlines in the input data
deleted 1 character in body
Jun
28
comment How to get more info about the boot message “Waiting for /dev to be fully populated”
I don't remember where that is off the top of my head but try grep -R populated /var/log.
Jun
28
answered awk and newlines in the input data
Jun
28
comment How to Check the existence of multiple files in a directory and zip the same
Answering here so we don't spam poor UncleAlbie. Fair enough, the OP is using [ -s ] so presumably they want to avoid running when no files are found. Still think it would be easier to just run tar -cvzf "$WORK/INET_$PRCSID.unl.gz" "$WORK"/*"$PRCSID.unl" || rm "$WORK/INET_$PRCSID.unl.gz" though. Less clean granted :)
Jun
28
comment validate record count in header
@user86683 If this answer solved your issue, please take a moment and accept it by clicking on the check mark to the left. That will mark the question as answered and is the way thanks are expressed on the Stack Exchange sites.
Jun
28
comment validate record count in header
Please edit your question and: i) show us your desired output; ii) explain what the record count is. Will it always be the last word on the first line? Also, can there be many records in the file? Will the header always start with a number? Will the records always start with detail?
Jun
28
revised Ctrl-Y, emacs styled yank text is not working when user is switched
deleted 4 characters in body; edited tags
Jun
28
comment Ctrl-Y, emacs styled yank text is not working when user is switched
This is not related to your question, but there's never any point in running sudo su. Just run sudo -i or su if you have enabled the root account.
Jun
28
comment How to Check the existence of multiple files in a directory and zip the same
@Scott as far as I can tell, that's not the question asked. The OP wants to know how to run this for multiple files, not how to avoid running it for single ones.
Jun
28
revised How to Check the existence of multiple files in a directory and zip the same
Removed edit mention and added some filler text to avoid automatic flagging