Skip to content

Instantly share code, notes, and snippets.

@thash
Created February 3, 2011 11:55
Show Gist options
  • Save thash/809391 to your computer and use it in GitHub Desktop.
Save thash/809391 to your computer and use it in GitHub Desktop.
sed regexp to separate filename by dot
#!/bin/sh
echo "file.txt" | sed -e 's/\(.\+\)\(\..\+\)/\1\2/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment