Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. names=( [!_]* )
  2.  
  3. if [ -e "${names[0]}" ]; then
  4. echo 'there are filenames that do not start with underscore'
  5. fi
  6.  
  7. set -- [!_]*
  8.  
  9. if [ -e "$1" ]; then
  10. echo 'there are filenames that do not start with underscore'
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement