| | |
Input file!
Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2007
Posts: 399
Reputation:
Solved Threads: 47
Hey there,
How do you mean? Do you just want to read a file into a program or have the program read a file? Or something else.
If you could clarify, that would be cool.
Thanks,
Mike
How do you mean? Do you just want to read a file into a program or have the program read a file? Or something else.
Shell Scripting Syntax (Toggle Plain Text)
while read x do echo $x done <input.thanks
If you could clarify, that would be cool.
Thanks,
Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
•
•
Join Date: Oct 2007
Posts: 399
Reputation:
Solved Threads: 47
You can do this pretty simply with awk. Check these boards for a fairly recent post on (I think the title is roughly) "even and odd" columns. You should find about 6 different ways to do it there, some of which I submitted.
I think you should be all set after that
, mike
I think you should be all set after that

, mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
![]() |
Similar Threads
Other Threads in the Shell Scripting Forum
- Previous Thread: check if the input is number or text
- Next Thread: length of a variable!
Views: 739 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for Shell Scripting





