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

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.

About Shell script - Need help

Reply to Message Icon

Name: edyhui
Date: November 25, 2003 at 18:01:59 Pacific
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?




Sponsored Link
Ads by Google

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

And what would be thoses "individual text files"


0

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

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!


0

Sponsored Link
Ads by Google
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: About Shell script - Need help

Borland Shell Script - HELP!!! www.computing.net/answers/unix/borland-shell-script-help/2116.html

Read file and replace..shell script www.computing.net/answers/unix/read-file-and-replaceshell-script/5083.html

read from file in shell script www.computing.net/answers/unix/read-from-file-in-shell-script/3803.html