Computing.Net > Forums > Unix > About Shell script - Need help

About Shell script - Need help

Reply to Message Icon

Original Message
Name: edyhui
Date: November 25, 2003 at 18:01:59 Pacific
Subject: About Shell script - Need help
OS: Unix
CPU/Ram: --
Comment:

I'm completely new to shell programming. As this is quite urgent, please offer your help. Thanks a lot!

If there is a text file which contains:
1. Amt = 1000
Date = 01012003
=========================
2. Amt = 500
Date = 11012002
=========================
3. ..
===
etc...
How to use shell script to read it line by line and write the every records into each individual text files?



Report Offensive Message For Removal


Response Number 1
Name: Danny Larouche XL2
Date: November 26, 2003 at 13:24:22 Pacific
Reply: (edit)

And what would be thoses "individual text files"


Report Offensive Follow Up For Removal

Response Number 2
Name: edyhui
Date: November 26, 2003 at 17:26:15 Pacific
Reply: (edit)

Those individual text files contain every records from the input text file. In other words, the script is to capture each record and save it into a text file. If the input file contains 3 records, there should be 3 text files and each file contains 1 record. Thanks in advance!


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: About Shell script - Need help 

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge