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 ‘:’.
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.
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.