Skip to content

Instantly share code, notes, and snippets.

@thedrewbisset
Created March 11, 2016 18:35
Show Gist options
  • Save thedrewbisset/0f24f7bcd61e96b7f60b to your computer and use it in GitHub Desktop.
Save thedrewbisset/0f24f7bcd61e96b7f60b to your computer and use it in GitHub Desktop.
# 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