Another bash gem

This time from the cinelerra-cv mailing list as a suggestion for helping to work through the cinelerra-cv code to check the licences of all the bits

for f in `find . -type f`; do echo “$f”; less $f; read flag; if [ !”$flag” = “y” ]; then echo “$f” >> flagged.list; fi; done

so this loops through each file and lets you take a note of each one that you want to look at later.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s