Question 3 (1 point) In Linux, execute the following command to download the \"F
ID: 3701656 • Letter: Q
Question
Question 3 (1 point) In Linux, execute the following command to download the "First Monday" article: wget -O first monday.html http://www.uic.edu/htbin/cgiwrap/bin/ojs/index.php/fm/article/view/3156/2747 Use sed and regular expressions to edit first monday htmi as follows: 1. Remove empty/blank paragraphs, if any. (HTML paragraph starting tag is p and ending tag is ) This is some text in a paragraph. A paragraph is empty if there is nothing or has only spaces or tabs in between and 2. Remove all images (in HTML, images are defined with the tag. Example: 3. The resulting file should still be a valid HTML file, displayable in a standard web browser. For your answer, copy/paste the commands you used to answer this question. For example, if you used a command similar to sed -iback -e slp:space: 11 /p>lIg' first monday.htm/ then you would paste that command as well as any others you used in the answer for this field Save Question 4 (0.5 points) On thor [YES, YOU MUST USE Thor and not some other system), use the find command to find out cumulatively how many files exist with names that end in h inside the /usr/include directory and its sub directories. You may use wc as part of your solution To answer this question, copy and paste or just write the number in the answer field Hint: use man find to research how to obtain your answer.Explanation / Answer
Q3)To remove empty Paragraph in that first monday article using sed, following command can be used:
//sed -i 's|<p>[[:space:]]*</p>||g' first_monday.html// this removes empty paragraph between the tags <p> and </p> using sed
To remove all images using sed:
//sed -i 's|<img /*>||g' first_monday.html
This command will remove all images.
Q4) the find command to determine cumulatively how many files with names ending in .h within /usr/include and its sub-directories
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.