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
Category
:
Unix
Views
Page
Discussion
View source
History
Personal tools
Log in / create account
Navigation
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Search
Toolbox
What links here
Related changes
Special pages
Printable version
Permanent link