Skip to content

Instantly share code, notes, and snippets.

@ihashacks
Created May 24, 2012 23:18
Show Gist options
  • Save ihashacks/2784834 to your computer and use it in GitHub Desktop.
Save ihashacks/2784834 to your computer and use it in GitHub Desktop.
Backup for All Your Facebook Pictures and Captions using FBCMD
for i in `\
php fbcmd.php albums | \
awk ' { print $1 } ' | \
sed -e 's/[[:punct:]]//g' -e '/^$/d' \
` ; do \
mkdir -p pics/$i ;\
php fbcmd.php apics $i pics/$i ;\
done \
> captions.txt
@ihashacks
Copy link
Author

whitespace is your friend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment