Skip to content

Instantly share code, notes, and snippets.

@wvega
Created October 3, 2016 21:18
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 wvega/99a791da31db1a1dff28c8e35981c978 to your computer and use it in GitHub Desktop.
Save wvega/99a791da31db1a1dff28c8e35981c978 to your computer and use it in GitHub Desktop.
Oneliner used to remove the hidden flag from files and directories in the current directory
ls -lO | grep hidden | tr -s " " | cut -d " " -f 10- | awk '{ system(sprintf("chflags nohidden \"%s\"", $0)) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment