Search Results

Search: Posts Made By: TTLGY
8,955
Posted By TTLGY
I ran zcat /home/filename* | cut -f 3 | sed...
I ran

zcat /home/filename* | cut -f 3 | sed 's/.*\(XXXXX.\{1,5\}\).*/\1/' | less

and it appears to have output the contents of f3. regardless of matches.

Filename is correct, f3 is...
8,955
Posted By TTLGY
Here we go: Sample: hdyshdnfh...
Here we go:

Sample:

hdyshdnfh 4425448447424 sdasdasdaXXXXXsiynfSSSSSS kfuhskdjfvbdfkjv fdlkghdflgdf
udfndfsvksdgv 54454581454 sdasdssXXXXXswednHHHHH hjdbfgsdyhbvdkfuhvfhdb fldkgjdflkg...
8,955
Posted By TTLGY
Yeah, so right now I am using zcat...
Yeah, so right now I am using

zcat /home/filename* | cut -f 3 | grep "XXXX" | less

Which outputs eg

sdasdasdaXXXXXsiynfSSSSSS
sdasdssXXXXXswednHHHHH...
8,955
Posted By TTLGY
Help with cut
Hello,

I am trying to grep through some http log files and am having difficulty refining cut to my requirements.

I am cutting out everything but the column I want using "cut -f 5"

Which...
Showing results 1 to 4 of 4

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