933 B
933 B
Answers for Lab 3 - OS
q1.sh-File or Folder check-Usingechoandif-elseif-fistatements.q2.sh-Filename Search- Usingfindargs, primarilyinamefor pattern matching and `-type>q3.sh-Extension Change-.txt->.txt. Mainly usingmv, butcutwas used with a deli>q4.sh-Arithmetic in echo-bc -lis used for mathlib for arithmetic arg printed byecho.q5.sh-Directory with Custom Files- application of basicmkdir,cp,findcommandsq6.sh-Start of the line mod-sedargs stacked to meet query requirements.q7.sh-Even Number Line deletion- Usesreadto parse through a file, and an iterating vari>
Additional Exercises
addq1.sh-Prime Number Checker-if-elseandforloops.addq2.sh-Factorial-forloop almost exclusively.addq3.sh-EvenFile vs Oddfile-read,if-elseandwhileloops