The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Extract lines from a file automatically. Please a Help alexcol Shell Programming and Scripting 8 12-16-2006 05:25 PM
How to extract a sequence of n lines from a file 0ktalmagik Shell Programming and Scripting 4 06-30-2006 12:24 AM
How to extract many lines from a file, typically the 1000 last kingkong UNIX for Dummies Questions & Answers 3 11-23-2005 04:20 AM
how to extract a range of lines from a file beilstwh Shell Programming and Scripting 5 07-09-2004 09:20 AM
extract specific lines from file apalex UNIX for Dummies Questions & Answers 2 05-15-2001 10:57 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-12-2008
ganesh_248 ganesh_248 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 41
need to extract few lines from a file and put it in another file

Hi all,

I have a file which contains comments,dotted lines(-------),actual records etc.I need to fetch only the actual records and put into a new file neglecting/deleting other rows.I have a header record too which contains the column names for the actual records.i need to discard this too.how do i do it...??pls help me out....find below a sample file

aaaaaa
bbbbbbbbbbbbbb
cccccccccccccccc
abc


--------------------

"card details"
"bank name"#"store no"#"amt1"#"amt2"#"rate"#"conversion";
HSBC#1000#1,234.10#1,111.11#2#1 USD = 50 INR# ;
HDFC#2000#2,222.22#3,333.33#4#1 EUR = 60 INR# ;
SBI#100#200#300.00#8#1 GBP = 30 INR# ;


i need only the last three lines...
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0