Skip to content

Instantly share code, notes, and snippets.

@darkfe
Created May 8, 2013 04:53
Show Gist options
  • Save darkfe/5538273 to your computer and use it in GitHub Desktop.
Save darkfe/5538273 to your computer and use it in GitHub Desktop.
#!/bin/bash
function ergodic(){
for file in ` ls $1 `
do
if [ -d $1"/"$file ]
then
ergodic $1"/"$file
else
echo $1"/"$file >> b
fi
done
}
INIT_PATH="/etc/httpd"
ergodic $INIT_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment