Skip to content

Instantly share code, notes, and snippets.

@amaslenn
Last active August 29, 2015 14:07
Show Gist options
  • Save amaslenn/847547a32da91672b591 to your computer and use it in GitHub Desktop.
Save amaslenn/847547a32da91672b591 to your computer and use it in GitHub Desktop.
One liners

Convert CRLF to LF
find . -name '*.p?' -exec dos2unix {} \;

Get mount point for a directory
df -P /di/rec/to/ry | tail -1 | cut -d' ' -f 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment