Bash looping through directories & sub-directoires

line Tags: , ,

Note to self…. If I want to “do” something to all files in all sub-directories then I need…..


#!/bin/bash
export IFS=$'\n'
for i in $(find $1 -type f)
do
echo "$i"
done

nick

 

Got something to say?

 

Some other things that might interest you...

---