Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #! /bin/bash                        
  2.                                      
  3. if [[ $(file "./foo.txt") in *mp4* ]]
  4. then                                
  5.     echo "it's text!"                
  6. else                                
  7.     echo "it's not text"            
  8. fi                                  
  9.                                      
  10. exit                                
  11.  
  12.  
  13. //**//
  14.  
  15.  
  16. ./makemp4.sh: line 3: conditional binary operator expected    
  17. ./makemp4.sh: line 3: syntax error near `in'                  
  18. ./makemp4.sh: line 3: `if [[ $(file "./foo.txt") in *mp4* ]]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement