Scripting

From Null-pointer

Jump to: navigation, search

Reading the contents of a file and looping through them

#!/bin/bash
cat $1/my_file.txt | while read file
do
	echo $file
done
Personal tools