Skip to content

Instantly share code, notes, and snippets.

@cpascual
Last active May 24, 2016 08:05
Show Gist options
  • Save cpascual/7d943f7a45cac25c1675bbeae9360be7 to your computer and use it in GitHub Desktop.
Save cpascual/7d943f7a45cac25c1675bbeae9360be7 to your computer and use it in GitHub Desktop.
#find trunks
find . -type d -iname trunk > /tmp/find-trunk.txt &
#filter paths
cat /tmp/find-trunk.txt | sed 's/\.\(.*\)\/trunk/\1/' > /tmp/paths.tst
# to make script
# sed 's/\.\(.*\)\/trunk/grep -v \1 \| \\/' > /tmp/filter.sh
# edit /tmp/filter.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment