Created
December 4, 2020 01:07
-
-
Save angeloevangelista/516856e61c177fa36300c45d8c43398f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p ./aula/SO/arquivos aula/SO/textos aula/SO/trabalhos | |
cd aula | |
for i in 1 2 3 4 5 6; | |
do | |
touch $i.txt; | |
done; | |
touch ./SO/textos/.hidden | |
for i in 1 2 3; | |
do | |
mv $i.txt ./SO/textos/; | |
echo $i.txt >> ./SO/textos/.hidden; | |
done; | |
for i in 4 5 6; | |
do | |
cp $i.txt ./SO/arquivos/; | |
done; | |
# ls -R >> listagem.txt | |
# echo "Or, if You think it is more interesting..." >> listagem.txt | |
du -a >> ./listagem.txt | |
cat ./listagem.txt | |
rm ./*.* | |
rm ./SO/trabalhos -rf | |
mv ./SO/arquivos ./SO/outros | |
du -a | |
cd ../ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment