Skip to content

Instantly share code, notes, and snippets.

@nikolazic
Created April 28, 2014 19:30
Show Gist options
  • Save nikolazic/11381762 to your computer and use it in GitHub Desktop.
Save nikolazic/11381762 to your computer and use it in GitHub Desktop.
If a file listed in the input file exists echo it to the screen
ip=$1
for i in `cat "$ip"`
do
if [ -r $i ]; then
echo "$i"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment