166 reputation
6
bio website
location
age
visits member for 3 years
seen Mar 8 '13 at 20:21

Feb
25
awarded  Popular Question
Jan
19
accepted Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
Jun
30
accepted remove carriage return character from large binary file
Jun
30
awarded  Commentator
Jun
30
comment remove carriage return character from large binary file
Liked perl syntax, how to replace it in file, instead of generating new one ?
Jun
30
comment remove carriage return character from large binary file
it's complicated, yes is binary file , and yes it does have \r\n file has proprietary structure, binary file with headers separated by \r\n
Jun
30
asked remove carriage return character from large binary file
Apr
13
awarded  Scholar
Apr
13
accepted Unix Shell and colours
Apr
13
asked Unix Shell and colours
Apr
13
comment Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
Its PRODUCTION box, need to take special permissions approvals bla bla bla... todo any thing on it. and anything goes wrong there on comes on my head ;) and Its not worth it :)
Apr
12
comment Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
Any solution that stores data in array is out of question ... as I mentioned earlier , filesize is quite huge and it might over flow. Also awk on this system does not allow file size more than 3000 bytes.
Apr
12
comment Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
Yes but still I cant use it there, though its sure that this script will stay forever in my ~/bin :)
Apr
12
comment Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
pretty lenghty oneliner, but, this file is very huge, so pushing lines into array in this case is a bad Idea, isnt it ?
Apr
12
comment Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
Its production box and Unfortunately I dont have enough privilege to install anything, and I cant risk it, though, thanks for this tip I will install it and try on my home laptop
Apr
12
awarded  Supporter
Apr
12
comment Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
This is cool, Works like charm, though I had to use -bitw option with this to make it work for windows generated files.
Apr
12
awarded  Student
Apr
12
comment Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
ya its 5.8.8 and it works, great, but I need a script that does what -B do
Apr
12
comment Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?
Nice, which version of perl do I need to run this ?