Guest User

Untitled

a guest
Aug 14th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. regular expression to check file in bash
  2. if [ -f /path/to/file*.txt ]
  3.  
  4. if [ -f /path/to/file*.txt ]
  5. if [ -f /path/to/file1.txt ]
  6. if [ -f /path/to/file1.txt /path/to/file2.txt ]
  7.  
  8. find /path/to -name 'file*.txt' | grep -q '.'
Add Comment
Please, Sign In to add comment