426 reputation
314
bio website
location
age
visits member for 10 months
seen 2 hours ago

Jul
18
awarded  Popular Question
Jul
2
awarded  Curious
Jun
22
awarded  Good Question
Jun
19
accepted How to perform a multiline grep across multiple files?
Jun
19
revised How to perform a multiline grep across multiple files?
deleted 4 characters in body
Jun
19
comment How to perform a multiline grep across multiple files?
The one liner is missing the closing semicolon after '@F=""'. This seems to return the whole file where the pattern occurs, rather than just the pattern.
Jun
19
comment How to perform a multiline grep across multiple files?
Ah yes, that's what I mean. The pattern can vary greatly in the amount of blahs between the target strings.
Jun
19
revised How to perform a multiline grep across multiple files?
added 43 characters in body
Jun
19
comment How to perform a multiline grep across multiple files?
Thanks, I should have mentioned these log files vary greatly in size. Hence why I'm looking for a more precise approach. I'll update my question to reflect this.
Jun
19
comment How to perform a multiline grep across multiple files?
Sorry, it's Centos 5.10
Jun
19
asked How to perform a multiline grep across multiple files?
Jun
17
awarded  Constituent
Jun
10
awarded  Caucus
May
14
accepted Script to recursively check permissions and owners of a directory and write shell script to recreate them
May
12
comment Script to recursively check permissions and owners of a directory and write shell script to recreate them
OK amended. I thought it was clear enough as the other answers seemed to comprehend the situation.
May
12
revised Script to recursively check permissions and owners of a directory and write shell script to recreate them
added 93 characters in body
May
12
comment Script to recursively check permissions and owners of a directory and write shell script to recreate them
@Patrick. Try reading through it. My solution has read all current permissions for each individual directory/file using find and saved them a separate command in a shell script. E.G. a directory contains 3 files each owned by a separate user. Your solution can only assign them to one user. Mine can assign them to all three seperately. The idea is to take an existing directory on one machine and mirror the permissions on another, or repair them if changed.
May
12
comment Script to recursively check permissions and owners of a directory and write shell script to recreate them
How? It's much more intricate than chown/chmod -R. Those commands can only set the whole folder recursively to one user/set of permissions.
May
8
awarded  Teacher
May
8
answered Script to recursively check permissions and owners of a directory and write shell script to recreate them