Skip to content

Instantly share code, notes, and snippets.

@adamstraube
Created October 17, 2019 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamstraube/e23007c0811e30617d194565b2f6531c to your computer and use it in GitHub Desktop.
Save adamstraube/e23007c0811e30617d194565b2f6531c to your computer and use it in GitHub Desktop.
Remove directory path from filename - SED
#!/bin/bash
# Full filenames+dirs, 1 per per line in filenames.txt first
sed -i "s:.*\/::" filenames.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment