Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
- The problem statement, all variables and given/known data:
Creating bash script the dd command and its new options (-l -U)
-l options to lowercase contents of file
-U options to UPPERCASE contents of file
in such a way that when it invokes the
dd -U if=test of=test.bak
then the output of contents of file will become UPPERCASE or vise versa in the -l options
- Relevant commands, code, scripts, algorithms:
Sample:
vi test and press Enter
#! /bin/bash
this is the test script to make contents of file UPPERCASE
vi test2 and press Enter
#! /bin/bash
THIS IS THE TEST2 SCRIPT TO MAKE CONTENTS OF FILE lowercase
then press Enter again..
Type:
chmod a+x test
And in command line type:
dd -U if=test of=test.bak and press Enter
dd -l if=test2 of=test2.bak and press Enter
Output the 2 should be:
THIS IS THE TEST SCRIPT TO MAKE CONTENTS OF FILE UPPERCASE
this is the test2 script to make contents of file lowercase
- The attempts at a solution (include all code and scripts):
#! /bin/bash
this is the test script to make contents of file UPPERCASE
- Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
San Lazaro University, New york (California), United States, Instructor Maldeo Meinier, OS221
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).