Skip to content

Instantly share code, notes, and snippets.

@zackferrofields
Last active June 25, 2019 09:42
Show Gist options
  • Save zackferrofields/de05701d71b7d3d3dec3c26b5bad64f9 to your computer and use it in GitHub Desktop.
Save zackferrofields/de05701d71b7d3d3dec3c26b5bad64f9 to your computer and use it in GitHub Desktop.
list files cheatsheet
# list files by name
#
# find $PATH -name '$FILE_NAME' -print | rev | cut -d/ -f1 | rev"
#
# eg all javascript files in "src"
#
find ./src -name '*.js' -print | rev | cut -d/ -f1 | rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment