Question: Please include the LINUX code. Use Ubuntu. Thank you. Here's the Wk06data.txt Email: ------ Email has become an important tool for communicating in the Internet

Please include the LINUX code. Use Ubuntu. Thank you. Please include the LINUX code. Use Ubuntu. Thank

Please include the LINUX code. Use Ubuntu. Thank

Please include the LINUX code. Use Ubuntu. Thank

Please include the LINUX code. Use Ubuntu. Thank

Here's the Wk06data.txt

Email: ------ Email has become an important tool for communicating in the Internet era but many email users do not use email effectively. There are many people who do not use email for communicating. There are also many people who use email but do not follow the minimum email equiquettes so their emails sound demanding and terse. More information can be obtained by contacting us at info@hiscompany.com, or inquire@hiscompany.com. Please contact us using this email address: support@mycommpany.com. Email addresses that is not correct: my@add, @ad@mycom.com, my@@dot.com Many users @ that company do not has an email address. My email address @ this company is john.doe@howto.com. Address book ------------ John Job 972-555-5551 john@cowberry.com Joe Swift 469-222-3331 joe@that.com Jane Doe (214)-312-1234 Jane.Doe@her.com Mary Smith 6822132222 Mary.Smith@me.com Tom Wayne (732) 213 3456 Tom.Wayne@wayne.com Holy Chan 972-222-2211 hc@berry.com Fruits list ----------- Here are a list of fruits that are sold in a supermarket and their price per pound: Name Price Category cowberry, $2.19 fruit apple, $1.5 fruit strawberry, $2.99 fruit red grape, $1.29 fruit black grape, $2.39 fruit blueberry, $1.58 fruit banana, $0.57 fruit avocado, $4.77 fruit blackberry, $1.29 fruit Raspberry, $3.09 fruit Dewberry, $1.49 fruit orange, $.99 fruit Salmonberry, $7.19 fruit Bayberry, $3.49 fruit peach, $3.20 fruit Boysenberry, $8.29 fruit cantaloupe, $2.29 fruit Mulberry, $2.99 fruit Note that some of these fruits are not available at all stores.

THIS IS THE mypage.html

Your Title Here


Link Name

is a link to another nifty site

This is a Header

This is a Medium Header

Send me mail at

support@yourcompany.com.

This is a new paragraph!

This is a new paragraph!


This is a new sentence without a paragraph break, in bold italics.


Part II: Questions: a. What is the size of wk06data and wk06data.txt after step 5 In the LAB section above? Why the size of wk06data is smaller than that of wk06data.txt? Your answer: b. What does the following regular expression match? lNote that there is a SPACE after[ Your answer: Hint: you may need to refer to the ASCII table when working on this question. c. What does this command do? sed 's/black/white/' ]*>//g' file -e Your answer: Explain how does the command work to get full credit. Submit this file after given your answer to the questions above, together with the file 'wk06_RE and textprocessing exercises.typescript' in your zip file for week 06 activities submission. Part I: LAB: On a Linux virtual machine (or cs1, cs2) terminal windows start the 'script' command to capture the interaction with a bash shell into a file named wk06 RE_and textprocessing exercises.typescript', then perform the following operations: 1. Create a directory named mydata on your home directory 2 Go to that directory and download the files wk06data.txt and mypage.html into that directory Since the file wk06datatxt was created on a Windows (MS-DOS) machine every line ends with a CR (Carry Return, OxOD) and then LF (Line Feed 0x0A) characters. On the Unix environment a line in text files ends with a LF only. s. Verify that the file you have downloaded is still in MS-DOS text format (i.e. a line ending with a CR and then LF You should use the file command to verify. The output of the file command when applying to wk06data.txt should be: wk0 6data.txt: ASCII text, with CRLF line terminators Using the sed tool convert the file wk06data.txt from MS-DOS to Unix text format and store that in a new file named wk06data. Verify that the file is in Unix text format. Again the file command should be used for this verification and the output should be wk06data: ASCII text 4. s. Run command Is I wk06data 6. Use the grep command to display all lines in the file wk06data that contain the word email of Email. 7. Then display all lines in the file that does not contain the word email or Email. Use the grep command to display all fruits that are a berry in the wk06data 8. file. Then display all fruits that are not a berry in the wk06data file. For 8 and 9 make sure that only lines that in the fruits list section are 9. displayed. in a file named mypage. Display the content of file mypage. email addresses in the file wk06data to a new file named emails.list, A valid 10. Use sed to remove all HTML tags in the file mypage.html and put the result 11. Use grep command and redirection to copy only the lines that have valid email address is the one that is in the @host. Format where is a sequence of letters and digits, andand''can appear between them. It must start with a letter or a digit, not with other characters. Examples of valid users: "0223", "Tom", "tom09", "i smith", "i.smith", "j-smith". is a sequence of at least two words, separated by characteri. Each word is sequence of letters and can have character'-" between the letters. Examples of valid hosts: "sg.se", "my-cs.com", ", "mail.un.org". List (Is 1) and display (cat) the content of emails.list Part II: Questions: a. What is the size of wk06data and wk06data.txt after step 5 In the LAB section above? Why the size of wk06data is smaller than that of wk06data.txt? Your answer: b. What does the following regular expression match? lNote that there is a SPACE after[ Your answer: Hint: you may need to refer to the ASCII table when working on this question. c. What does this command do? sed 's/black/white/' ]*>//g' file -e Your answer: Explain how does the command work to get full credit. Submit this file after given your answer to the questions above, together with the file 'wk06_RE and textprocessing exercises.typescript' in your zip file for week 06 activities submission. Part I: LAB: On a Linux virtual machine (or cs1, cs2) terminal windows start the 'script' command to capture the interaction with a bash shell into a file named wk06 RE_and textprocessing exercises.typescript', then perform the following operations: 1. Create a directory named mydata on your home directory 2 Go to that directory and download the files wk06data.txt and mypage.html into that directory Since the file wk06datatxt was created on a Windows (MS-DOS) machine every line ends with a CR (Carry Return, OxOD) and then LF (Line Feed 0x0A) characters. On the Unix environment a line in text files ends with a LF only. s. Verify that the file you have downloaded is still in MS-DOS text format (i.e. a line ending with a CR and then LF You should use the file command to verify. The output of the file command when applying to wk06data.txt should be: wk0 6data.txt: ASCII text, with CRLF line terminators Using the sed tool convert the file wk06data.txt from MS-DOS to Unix text format and store that in a new file named wk06data. Verify that the file is in Unix text format. Again the file command should be used for this verification and the output should be wk06data: ASCII text 4. s. Run command Is I wk06data 6. Use the grep command to display all lines in the file wk06data that contain the word email of Email. 7. Then display all lines in the file that does not contain the word email or Email. Use the grep command to display all fruits that are a berry in the wk06data 8. file. Then display all fruits that are not a berry in the wk06data file. For 8 and 9 make sure that only lines that in the fruits list section are 9. displayed. in a file named mypage. Display the content of file mypage. email addresses in the file wk06data to a new file named emails.list, A valid 10. Use sed to remove all HTML tags in the file mypage.html and put the result 11. Use grep command and redirection to copy only the lines that have valid email address is the one that is in the @host. Format where is a sequence of letters and digits, andand''can appear between them. It must start with a letter or a digit, not with other characters. Examples of valid users: "0223", "Tom", "tom09", "i smith", "i.smith", "j-smith". is a sequence of at least two words, separated by characteri. Each word is sequence of letters and can have character'-" between the letters. Examples of valid hosts: "sg.se", "my-cs.com", ", "mail.un.org". List (Is 1) and display (cat) the content of emails.list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!