Skip to content

Instantly share code, notes, and snippets.

@NorbertFenk
Created February 9, 2018 11:46
Show Gist options
  • Save NorbertFenk/eaa77ed902f50ffbbc9f25620cb869a6 to your computer and use it in GitHub Desktop.
Save NorbertFenk/eaa77ed902f50ffbbc9f25620cb869a6 to your computer and use it in GitHub Desktop.
If you accidentally hit cmake before "cd build" and you really do not know how to "mass" checkout folders and files this will help a lot.
#!/bin/bash
# source: https://stackoverflow.com/questions/10929453/read-a-file-line-by-line-assigning-the-value-to-a-variable
while IFS='' read -r line || [[ -n "$line" ]]; do
rm -rf $line
done < "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment