3 ways to iterate over lines of a file in Linux
Frequently I need to run a process for each item in a list, stored in a text file one item per line: usernames, filenames, e-mail addresses, etc. Obviously there are more than 3 ways to do this, but here are 3 I have found useful: Bash sh prog1.sh list.txt Source: prog1.sh while read line do … Continue reading 3 ways to iterate over lines of a file in Linux
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed