Skip to content

Instantly share code, notes, and snippets.

@skwid138
Last active May 3, 2021 17:33
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 skwid138/d9ced9ddae99f64c8d8dcba87cb22327 to your computer and use it in GitHub Desktop.
Save skwid138/d9ced9ddae99f64c8d8dcba87cb22327 to your computer and use it in GitHub Desktop.
# List only directories in the current location
ls -d */
# List files and directories with permissions and dates
ls -lh
# Remove white-sapce (tabs, spaces, and new lines)
sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' -e 's/[\t ]//g;/^$/d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment