Re: Sed, awk?

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

 



"Jake McHenry" <linux@xxxxxxxxxxxxxxxxx> writes:

> Wow.. Thanks
>
> Actually.. It's 
>
> Add_spam | grep 'whatever' * | cut -f1 -d:
>
> Can I do that? I need the result of grep 'whatever' * | cut -f1 -d:
> on one line and it's the input into add_spam, a small shell script I
> did that takes all the file names seperated by spaces.

grep 'whatever' * |awk '{printf "%s %s",$1,""}END{print}'


-- 
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