/ Published in: Bash
Reads a linux file, line by line
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/sh while read LINE do echo "processing $LINE" done < your_input_file An example of your_input_file would be: one two three Each line in your_input_file will be read into LINE.