Pace University New York Text Processing Scripting Discussion Questions HW5: text processing; scripting 1. Write a Linux command to rewrite the /var/passw

Pace University New York Text Processing Scripting Discussion Questions HW5: text processing; scripting

1. Write a Linux command to rewrite the /var/passwd file to have a tab for each delimiter ‘:’.

Don't use plagiarized sources. Get Your Custom Essay on
Pace University New York Text Processing Scripting Discussion Questions HW5: text processing; scripting 1. Write a Linux command to rewrite the /var/passw
For $10/Page 0nly
Order Essay

Hint: use tr

2. Write a Linux command to extract the user names and sort them.

Hint: use cut

3. Write a for loop to to display a time table, e.g., 17 x 1 = 17; 17 x 2 = 34; etc., as follows:

17 x 1 = 17

17 x 2 = 34

17 x 3 = 51

17 x 4 = 68

17 x 5 = 85

17 x 6 = 102

17 x 7 = 119

17 x 8 = 136

17 x 9 = 153

17 x 10 = 170

17 x 11 = 187

17 x 12 = 204

17 x 13 = 221

17 x 14 = 238

17 x 15 = 255

17 x 16 = 272

17 x 17 = 289

4. Write a Linux command to download the following webpage to the fail called “viral-diseases”

Hint: use wget

5. Using a regular expression, write a Linux command to extract URL addresses from the viral-diseases. The URL starts with “www” and ending with “com” or “gov”.

Hint: use grep -E

6. Write a bash shell to 1) using a for loop to create the directory called “jyoon_0” to “jyoon_9”; 2) change directory to each of the directories created, 3) write the sentence “Yoon visited in directory jyoon_0t” in the file jyoon_0.txt”, 4) attach the timestamp to the file; 5) writhe the same sentence to the standard output device, 6) the timestamp too; 7) do this to all those 10 directories, and 8) at the end, write “All done” to the standard output device.

Calculator

Calculate the price of your paper

Total price:$26

Need a better grade?
We've got you covered.

Order your paper