Guest User

Untitled

a guest
Nov 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. files=(*)
  4.  
  5. for file in $files
  6. do
  7. echo $file
  8. done
  9.  
  10. # This demonstrates that the array in fact has the values from (*)
  11. echo ${files[0]} ${files[1]}
  12.  
  13. echo done
  14.  
  15. echo.sh
  16. echo.sh read_output.sh
  17. done
  18.  
  19. for file in "${files[@]}"
Add Comment
Please, Sign In to add comment