Skip to content

Instantly share code, notes, and snippets.

@sbarre
Created January 24, 2016 19:54
Show Gist options
  • Save sbarre/7de289fbb5a966e83106 to your computer and use it in GitHub Desktop.
Save sbarre/7de289fbb5a966e83106 to your computer and use it in GitHub Desktop.
#!/bin/bash
for file in *
do
root=$(echo $file | sed -e s/\.[^\.]*$//)
echo $root
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment