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 ‘:’.
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.
Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…
TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…
Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…
The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…
you need to post your 2-page information flier to share with your Final Project Group.…
discussion: Discuss the methods used at your company to measure and ensure quality products and…