LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] He SED she SED we SED that they SED.....

[CLUG] He SED she SED we SED that they SED.....

Jerry Walsh jerry at nitroweb.net
Wed Mar 21 17:29:02 GMT 2001


You could use awk

cat file | awk '{print $4 }'


or cut

cat file | cut -d ' ' -f 4

HTH,

Jerry.

somebody called Baldwin_James at emc.com wrote:
> Lads,
> 
> Quick question on Sed..I am brain-dead today...
> 
> I have a file for eg. below and want to keep only 1 column of data and
> delete the rest before and after that column;
> HOW?  Using SED?  How about a pre-filter of Grep before SED?
> (so, I want to make a file list and cut the rest of the data out)
> 
> BEFORE FILE:
> 
> Cannot Process File /usr/bin/12765 "The file is completely arsed. Can't
> access"
> Cannot Process File /usr/bin/123244 "The file is completely arsed. Can't
> access"
> Cannot Process File /usr/bin/134 "The file is completely arsed. Can't
> access"
> Cannot Process File /usr/bin/4334345 "The file is completely arsed. Can't
> access"
> Cannot Process File /usr/bin/12733 "The file is completely arsed. Can't
> access"
> Cannot Process File /usr/bin/1245981115 "The file is completely arsed. Can't
> access"
> 
> AFTER FILE:
> /usr/bin/12765
> /usr/bin/123244
> /usr/bin/134
> ....etc
> ....etc
> ....etc....
> 
> THANKS...............J.!
> 
> _______________________________________________
> Cork maillist  -  Cork at linux.ie
> http://www.linux.ie/mailman/listinfo/cork

-- 
Jerry Walsh                            jerry at nitroweb.ie
NitroWeb Computing Ltd.                Fax +353 21 4776209
Crossmahon, Bandon,                    Tel  +353 21 4775540
Cork Ireland.                          http://www.nitroweb.ie/ 

------------------------------------------------------------------
Legal Notice
------------------------------------------------------------------
The information in this email is confidential and may be legally 
privileged. It is intended solely for the addressee. Access to 
this email by anyone else is unauthorized. If you are not the 
intended recipient, any disclosure, copying, distribution or any 
action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or
advice contained in this email are subject to the NitroWeb terms
and conditions.
------------------------------------------------------------------





More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell