Command Log: June 8, 2023, 12:58 pm

clear
wget https://swcarpentry.github.io/shell-novice/data/shell-lesson-data.zip
pwd
ls
unzip shell-lesson-data.zip
ls
ls -F
ls -F shell-lesson-data
ls -F shell-lesson-data/exercise-data/
ls -l
ls -l -F
ls -lF
ls -lF shell-lesson-data
clear
ls -lFa
pwd
ls
ls --help
man ls
clear
ls
cd shell-lesson-data
pwd
ls -a
ls -aF
cd ..
cd -
cd -
whoami
ks 
l s-j
ls -j
pwd
cd shell-lesson-data
ls -F
ls -F exercise-data/
ls -F exercise-data/writing/
cd ..
cd shell-lesson-data/exercise-data/writing/
pwd
cd -
ls
pwd
cd /home/demo/hccdemo/shell-lesson-data
pwd
cd -
cd shell-lesson-data
pwd
cd exercise-data/
ls -s
ls -lh 
ls alkanes
ls -lth alkanes/
ls -lthr alkanes/
ls *.pdb alkanes/
cd alkanes/
ls *tane.pdb
ls *tane*
pwd
ls ../
cd ../writing/
pwd
mkdir thesis
ls -F
mkdir -p ../project/data ../project/results
ls ../
pwd
ls ../project/
ls -F ../project/
ls
cd thesis
nano draft.txt
ls
nano draft.txt 
nano draft.txt 
touch my_file.txt
ls
nano my_file.txt 
ls 
rm my_file.txt 
ls
rm -i draft.txt 
ls
cd ..
pwd
rm thesis
clear
ls thesis/
mv thesis/draft.txt thesis/quotes.txt
ls thesis
cat thesis/quotes.txt 
mv thesis/quotes.txt .
ls thesis/
ls 
mv quotes.txt thesis/
ls
ls thesis/
cp thesis/quotes.txt quotations.txt
ls
cat quotations.txt 
cp -r thesis thesis_backup
ls
ls thesis_backup/
pwd
cd ..
ls
cd alkanes/
ls 
ls *t*ane*
ls *t?*ane*
ls 
ls *t??ne*
cat ethane.pdb 
cat *t??ne*
ls -lthr *.pdb
clear
clear
clear
ls *t??ne*
cat *t??ne*
cat ethane.pdb 
clear
cat *t??ne*
ls *t??ne*
clear
clear
clear
pwd
ls
cat cubane.pdb 
wc cubane.pdb 
wc *.pdb
wc 
wc *
wc -l *
wc -w *
wc -c *
wc -l *.pdb > lengths.txt
ls -F
cat lengths.txt 
sort -n lengths.txt
sort -n lengths.txt > sorted-lenghts.txt
ls
cat sorted-lenghts.txt 
head -n 1 sorted-lenghts.txt 
echo the echo command prints text
echo hello > testfile01.txt
echo hello >> testfile02.txt
ls
cat testfile01.txt 
cat testfile02.txt 
echo hello >> testfile02.txt
cat testfile02.txt 
cat testfile02.txt 
echo hello > testfile01.txt
cat testfile01.txt 
head -n 3 sorted-lenghts.txt 
tail -n 3 sorted-lenghts.txt 
tail -n 3 sorted-lenghts.txt 
sort -n lengths.txt 
sort -n lengths.txt | head -n 1
sort -n lengths.txt | head -n 4 | tail -n 2
pwd
cd ../creatures/
ls
wc -l *
head -n 5 basilisk.dat minotaur.dat unicorn.dat 
head -n 5 *.dat
for filename in basilisk.dat minotaur.dat unicorn.dat ; do echo $filename; head -n 2 $filename |tail -n 1; done
for filename in ls *.dat; do echo $filename; head -n 2 $filename | tail -n 1; done
for temperature in *.dat; do head -n 2 $temperature | tail -n 1; done
for filename in "basilisk.dat" "minotaur.dat" "unicorn.dat" ; do echo $filename; head -n 2 $filename |tail -n 1; done
pwd
ls
cp *.dat original-*.dat
for filename in *.dat; do cp $filename original-$filename; done
ls 
cd ../alkanes/
ls
nano middle.sh
cat middle.sh
bash middle.sh 
nano middle.sh 
bash middle.sh 
bash middle.sh propane
bash middle.sh propane.pdb
nano middle.sh 
cat middle.sh 
bash middle.sh propane.pdb 10 7
ls
nano sorted.sh
cat sorted.sh
bash sorted.sh *.pdb ../creatures/*.dat