Skip to content

Instantly share code, notes, and snippets.

@xlogix
Created March 29, 2020 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xlogix/fc20d533a4b98f21e5db88b2e9ef89fe to your computer and use it in GitHub Desktop.
Save xlogix/fc20d533a4b98f21e5db88b2e9ef89fe to your computer and use it in GitHub Desktop.
Extract filenames without their extensions and put it in the clipboard
ls -C | awk -F"." '{print $1}' | xclip -selection c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment