![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading and Writing from Excel using Unix scripting | AshishK | UNIX and Linux Applications | 3 | 11-08-2007 10:49 PM |
| reading/ writing to sockets | rein | Shell Programming and Scripting | 1 | 09-20-2007 05:57 PM |
| Reading and Writing file on LAN | lucky001 | High Level Programming | 3 | 03-30-2007 11:16 AM |
| What files are writing to a directory | hattorihanzo | UNIX for Dummies Questions & Answers | 3 | 01-17-2006 08:00 AM |
| Reading and writing SCO DAT tapes uing Linux | cstovall | UNIX for Dummies Questions & Answers | 3 | 04-27-2003 04:59 PM |
|
|
Submit Tools | LinkBack | Thread Tools | 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 |
| Forum Sponsor | ||
|
|
|
||||
|
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 07:25 AM. Reason: to add link |
||||
| Google The UNIX and Linux Forums |