Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- names=( [!_]* )
- if [ -e "${names[0]}" ]; then
- echo 'there are filenames that do not start with underscore'
- fi
- set -- [!_]*
- if [ -e "$1" ]; then
- echo 'there are filenames that do not start with underscore'
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement