Skip to content

Instantly share code, notes, and snippets.

@chibby0ne
Created February 28, 2015 01:42
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 chibby0ne/3134e0bd2f7e22182935 to your computer and use it in GitHub Desktop.
Save chibby0ne/3134e0bd2f7e22182935 to your computer and use it in GitHub Desktop.
One-liner that lists all the hidden files from a given directory
#!/bin/bash
# Add this one-liner script to the PATH variable and have the power to count the files in a directory from anywhere in the command line
ls -al $1 | grep -E \ \\..*$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment