diff --git a/bonus2.sh b/bonus2.sh index e4102f4..0a07ab5 100755 --- a/bonus2.sh +++ b/bonus2.sh @@ -1,4 +1,4 @@ #!/bin/bash data=`date +"%Y-%m-%d"` -rename 's//'$data'-/' *.png \ No newline at end of file +rename 's//'$data'-/' *.pngVou ter muito sucesso na programação! diff --git a/bonus3.sh b/bonus3.sh deleted file mode 100755 index e882573..0000000 --- a/bonus3.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -clear - -data=`date +"%Y-%m-%d"` -#rename 's//'$data'-/' *.png -#/home/moacyr/Documentos/Trybe/1_5 - -#cd /home/moacyr/Documentos/Trybe/1_5/$1 - -#pwd - -#echo $data - -#rename 's//'$data'-/' *.$2 - -cd /home/moacyr/Documentos/Trybe/1_5 - -ls -f > lista - -mv lista /home/moacyr/Documentos/Trybe/1_5/teste2 - -cd /home/moacyr/Documentos/Trybe/1_5/teste2 - -echo $lista - -for item in lista - do - if [ -f $item ] - then - echo $item - fi - done \ No newline at end of file