Quote:
Originally Posted by TonyLawrence
Works for me:
$
Code:
cat t
sdasdasdaXXXXXsiynfSSSSSS
sdasdssXXXXXswednHHHHH
suenfghsddfsdfsdcvgwefrdsfbiXXXXXwugdnUUUUUUUUUUUUUUUUUU
$ cat t| sed 's/.*\(XXXXX.\{1,5\}\).*/\1/'
XXXXXsiynf
XXXXXswedn
XXXXXwugdn
|
I ran
Code:
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 definately where I should be.
I am sure I have done something wrong here, as I am posting questions in the dummies section
