Guest User

Untitled

a guest
Jan 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ls: Cannot read '*.png': the file or the directory doesn't exist
  2.  
  3. ls -R | grep '.png$'
  4.  
  5. ls -R | grep .png$
  6.  
  7. find [startingPath] -type [fileType] -regex "[regularExpression]"
  8.  
  9. find . -type f -regex ".*.pdf"
  10.  
  11. find . -type f -regex ".*.pdf" -ls
  12.  
  13. find . -type f -regex ".*.pdf" -exec file {} ;
  14.  
  15. picture1.png
  16. picture2.png
  17.  
  18. ls -R picture1.png picture2.png
  19.  
  20. ls -R *.png
  21.  
  22. shopt -s globstar
  23. ls **/*.png
  24.  
  25. shopt -u globstar
  26.  
  27. globstar
  28. If set, the pattern ** used in a pathname expansion context will
  29. match all files and zero or more directories and subdirectories.
  30. If the pattern is followed by a /, only directories and
  31. subdirectories match.
Add Comment
Please, Sign In to add comment