Skip to content

Instantly share code, notes, and snippets.

@thedrewbisset
Created March 11, 2016 18:35
Embed
What would you like to do?
# list files, grab the file name, and print only up to the first underscore
# example: W555666777_19761028_30.xml
ll | awk {'print $9'} | awk -F_ {'print $1'} | uniq | awk -F. {'print $1'} | uniq | grep '^W'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment