LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: Reading Multiple Files with Bash (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-reading-multiple-files-with-bash-749452/)

LXer 08-22-2009 12:00 AM

LXer: Reading Multiple Files with Bash
 
Published at LXer:

Reading files is no big deal with bash: you just redirect the input to the script or pipe the output of another command into the script, or you could do it inside the script if the file names are pre-determined. You could also use process substitution to pass in the open files (command pipelines actually) from the command line. Another option, the one I describe here, is to just open the files and read (or write) them as you like, as you'd do in other programming languages.

Read More...


All times are GMT -5. The time now is 10:43 AM.