Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- fichiers=$(ls)
- for f in $fichiers
- do
- if echo $f | -q grep "\.[[:alpha:]]*"
- then
- extension=$(echo $f | cut -d '.' -f2-)
- echo ".$extension"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement