Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. skrypt 1
  2. #!/bin/bash
  3. files=`find ${DIR} -type f`
  4. for file in ${files}
  5. do
  6. echo ${file}
  7. done
  8.  
  9. student@D3-10:~/Pulpit/lab33$ chmod -x skrypt1
  10. student@D3-10:~/Pulpit/lab33$ bash skrypt1
  11. ./skrypt1
  12. ./raport
  13. ./plik3.txt
  14. ./plik2.txt
  15. ./plik1.txt
  16. ./plik.txt
  17.  
  18. ///////////////////////////////////////////////
  19. skrypt 2
  20. #!/bin/bash
  21. files=`ls -p /etc/* | grep -v /`
  22. for file in ${files}
  23. do
  24. echo ${file}
  25. done
  26.  
  27. valgrind
  28. audio.conf
  29. input.conf
  30. main.conf
  31. network.conf
  32. proximity.conf
  33. rfcomm.conf
  34. serial.conf
  35. bonobo-activation-config.xml
  36. af.ctb
  37. am.ctb
  38. ar.ttb
  39. ascii-basic.tti
  40. as.ttb
  41. awa.ttb
  42. bengali.tti
  43. bg.ttb
  44. bh.ttb
  45. blocks.tti
  46. bn.ttb
  47. bo.ttb
  48. boxes.tti
  49. bra.ttb
  50. brf.ttb
  51. brl-al-abt_basic.kti
  52. brl-al-abt_extra.kti
  53.  
  54. ....
  55. ///////////////////////////////
  56. skrypt 3
  57. #!/bin/bash
  58. files=`ls -l | tr -s ' '|grep '^d' | cut -d$' ' -f 9`
  59. for file in ${files}
  60. do
  61. if [ ${file} = "-" ]
  62. then
  63. break
  64. fi
  65. echo ${file}
  66. done
  67.  
  68. student@D3-10:~/Pulpit/lab33$ bash skrypt1
  69. Katalog1
  70. Katalog2
  71. Katalog3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement