Created
February 3, 2011 11:55
-
-
Save thash/809391 to your computer and use it in GitHub Desktop.
sed regexp to separate filename by dot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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