linc on 31 Aug 2010 08:21:00 -0700


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

Re: [PLUG] Sed or awk help?!


Daniel.Roberts@sanofi-aventis.com wrote:
Hello
It has been a VERY long time that I have done any scripting..
So if you would..could you please help me out??
I have a file 1.7 million lines long..
It contains nothing but filenames with a .CEL extension..
What I need to do is prepare another file of the same type but with the
.CEL file extension ripped out..
How can I do this in sed/awk?
Thanks for any help!
Dan
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

tr -d ".CEL" < original.file > new.file

--
-Linc Fessenden

In the Beginning there was nothing, which exploded - Yeah right...
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug