Re: Sed, awk? [solved]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2003-12-19 at 07:40, Martin Stricker wrote:

> spam.spam ` grep 'nittany' * | cut -f 1 -d : | tr \\012 \\40 `

For some reason, and when I have the time I'll research it, you probably
need to eliminate the "tr" command from this line.  Note the test
below...

grep asd data | cut -f 1 -d : | tr \\012 \\040 
results in
203lkjasdf 203lkjasdf 203lkjasdf 203lkjasdf 203lkjasdf

echo `grep asd data | cut -f 1 -d : | tr \\012 \\040`
results in
003lkjasdf 003lkjasdf 003lkjasdf 003lkjasdf 003lkjasdf

echo `grep asd data | cut -f 1 -d : `
results in 
203lkjasdf 203lkjasdf 203lkjasdf 203lkjasdf 203lkjasdf

Regards,
Ed

-- 
"An opinion is like an asshole - everybody has one."
    - Clint Eastwood as Harry Callahan, The Dead Pool - 1988.


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux