Question: Please use linux and provide screenshots 1. Write a script to display the following patterns on the screen. Number of rows and columns are taken
Please use linux and provide screenshots
1. Write a script to display the following patterns on the screen. Number of rows and columns are taken from the command arguments; if they are missing, set default to 3 (rows) and 4 (columns). Hint: you will use a nested loop.
****
****
****
2. Create x empty files in a given directory (x is a number), following a naming format like this: myfile1, myfile2, etc. Ask the user to enter the first part file name and the number of files he/she wants to create. Hint: you may use the touch command to quickly create empty files.
a) Display the source code in an editor
b) Execute your script in the terminal, and display the command and the result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
