Skip to content

Instantly share code, notes, and snippets.

@avtomaton
Created January 21, 2016 16:14
Show Gist options
  • Save avtomaton/e0d6babfcc22d94029be to your computer and use it in GitHub Desktop.
Save avtomaton/e0d6babfcc22d94029be to your computer and use it in GitHub Desktop.
simplest 1-velel bash directory walker
#!/bin/bash
for i in *; do
cd $i;
for f in *; do
echo $i/$f >> '../files.txt';
done;
cd ..;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment