Skip to content

Instantly share code, notes, and snippets.

@r-pufky
Created June 23, 2018 19:25
Show Gist options
  • Save r-pufky/dd15f6a4db2ec1443ae634d1e27493d3 to your computer and use it in GitHub Desktop.
Save r-pufky/dd15f6a4db2ec1443ae634d1e27493d3 to your computer and use it in GitHub Desktop.
Get directory paths from a file listing (e.g. from find or file containing a list of paths)
sed 's|\(.*\)/.*|\1|'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment