Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- skrypt 1
- #!/bin/bash
- files=`find ${DIR} -type f`
- for file in ${files}
- do
- echo ${file}
- done
- student@D3-10:~/Pulpit/lab33$ chmod -x skrypt1
- student@D3-10:~/Pulpit/lab33$ bash skrypt1
- ./skrypt1
- ./raport
- ./plik3.txt
- ./plik2.txt
- ./plik1.txt
- ./plik.txt
- ///////////////////////////////////////////////
- skrypt 2
- #!/bin/bash
- files=`ls -p /etc/* | grep -v /`
- for file in ${files}
- do
- echo ${file}
- done
- valgrind
- audio.conf
- input.conf
- main.conf
- network.conf
- proximity.conf
- rfcomm.conf
- serial.conf
- bonobo-activation-config.xml
- af.ctb
- am.ctb
- ar.ttb
- ascii-basic.tti
- as.ttb
- awa.ttb
- bengali.tti
- bg.ttb
- bh.ttb
- blocks.tti
- bn.ttb
- bo.ttb
- boxes.tti
- bra.ttb
- brf.ttb
- brl-al-abt_basic.kti
- brl-al-abt_extra.kti
- ....
- ///////////////////////////////
- skrypt 3
- #!/bin/bash
- files=`ls -l | tr -s ' '|grep '^d' | cut -d$' ' -f 9`
- for file in ${files}
- do
- if [ ${file} = "-" ]
- then
- break
- fi
- echo ${file}
- done
- student@D3-10:~/Pulpit/lab33$ bash skrypt1
- Katalog1
- Katalog2
- Katalog3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement