Computing.Net > Forums > Unix > extract text from a unix flat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

extract text from a unix flat file

Reply to Message Icon

Name: jonnyd
Date: April 26, 2007 at 03:39:52 Pacific
OS: Sun Os10
CPU/Ram: sun4us sparc
Product: Sun
Comment:

hi all,
I have the following contents in a file:

64,000 B 04/23/07 07:32:37 M1 A /data/oracle/LNDBDP1/backup/arc2adsm/LNDBDP1_arc_l0_t620573562_s2398_p1.rmn
1,267,200 B 04/23/07 07:32:37 M1 A /data/oracle/LNDBDP1/backup/arc2adsm/LNDBDP1_arc_l0_t620574474_s2399_p1.rmn


And I need to extract the *.rmn bit at the the end of the lines not including the full path.

Any ideas?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: thepubba1
Date: April 26, 2007 at 05:11:59 Pacific
Reply:

This question has been answered numerous times in this forum. Try looking at this:

http://www.computing.net/unix/wwwbo...

Either solution is easily modified to suit your requirement.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: extract text from a unix flat file

Unix Flat files to CSV format www.computing.net/answers/unix/unix-flat-files-to-csv-format/279.html

Extracting information from a file www.computing.net/answers/unix/extracting-information-from-a-file/7770.html

CAN YOU RUN A DOS EXE FROM A UNIX PROMT? www.computing.net/answers/unix/can-you-run-a-dos-exe-from-a-unix-promt/2292.html