Created
October 17, 2019 01:52
-
-
Save adamstraube/e23007c0811e30617d194565b2f6531c to your computer and use it in GitHub Desktop.
Remove directory path from filename - SED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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