Search Results

Search: Posts Made By: iamwha1am
8,974
Posted By iamwha1am
Zgrep output to another compressed file
Hi,

I have a big (~15G) compressed file having around 170M records and I need to exclude around 4k bad records (\n in the string) .
The typical steps would have been

1. zgrep required records...
3,914
Posted By iamwha1am
Thanks Johnson and Cherry for the responses. ...
Thanks Johnson and Cherry for the responses.

The output from

sessList=$(ps -ef | awk -v sq="'" 'NR > 1 { printf sq "%s" sq ",", $2 }' )

looks like -
'0','1','3','4',

There is an...
3,914
Posted By iamwha1am
Transpose Rows
Hi,

Am trying to transpose a set of rows into a set of comma separated values.

For eg. if the output of

ps -ef | tail +2 | awk 'BEGIN{ FS=" " } { print $2 }'

is

0
1
3
4

I...
4,515
Posted By iamwha1am
Wow. That approach works great. Thanks Chris. ...
Wow. That approach works great. Thanks Chris.
Also, can you help me understand - how could i have changed the original approach to take care of this - 'cos i have a feeling that i was nearly there...
4,515
Posted By iamwha1am
Sed command to clean xml tag
Hi,
Can someone help me come up with a generic sed command to clean a tag off its attributes?

For eg.
Input String - <tag attrib=new>This String</tag>
should undergo a sed transformation to...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 04:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy