![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Reading and Writing from Excel using Unix scripting | AshishK | UNIX and Linux Applications | 3 | 11-09-2007 02:49 AM |
| reading/ writing to sockets | rein | Shell Programming and Scripting | 1 | 09-20-2007 08:57 PM |
| Reading and Writing file on LAN | lucky001 | High Level Programming | 3 | 03-30-2007 02:16 PM |
| What files are writing to a directory | hattorihanzo | UNIX for Dummies Questions & Answers | 3 | 01-17-2006 12:00 PM |
| Reading and writing SCO DAT tapes uing Linux | cstovall | UNIX for Dummies Questions & Answers | 3 | 04-27-2003 07:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Reading and Writing Files ?
Hello,
Our group is just starting to get into UNIX here. We are former REXX users on a VM Mainframe. Can someone point me to the documentation to read a file and write a file in a Unix Shell Script or does this have to be done in another language? Thank you in advance... Dave |
|
|||||
|
A simple way to read lines from one file, do some processing and write to another is this:
Code:
while read line; do # do some processing on variable $line, maybe hold the result in another variable echo $variable_holding_result >> output_file # the variable may be $line done < input_file Last edited by blowtorch; 08-30-2006 at 10:25 AM.. Reason: to add link |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|