Created
May 17, 2017 02:50
-
-
Save leigh-johnson/7b62ecb6515a9e62da142a3686fab3c4 to your computer and use it in GitHub Desktop.
Awk snippet: get the filename of each file from a space-separated list of full paths
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
awk 'BEGIN {FS="/"; RS=" ";}{print $NF;}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment