Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello, I'd really like to know the answers for this ubuntu command line questions please. I just can't seem to figure them out. Thanks! Task
Hello, I'd really like to know the answers for this ubuntu command line questions please. I just can't seem to figure them out. Thanks!
Task 04 (5 points) Write a piped command to count the number of unique words in the following input. Input file (hwo204.txt) Expected output of script 25 Oh yeah, I'll tell you something I think you'll understand When I say that something I wanna hold your hand I wanna hold your hand I wanna hold your hand Oh please, say to me You'll let me be your man And please, say to me You'll let me hold your hand You'll let me hold your hand I wanna hold your hand Task 05 (5 points) Write a piped command to count the number of times the word "hand" occurs in the following input Input file (hw0205.txt) Expected output of script 6 hand Oh yeah, I'll tell you something I think you'll understand When I say that something I wanna hold your hand I wanna hold your hand I wanna hold your hand Oh please, say to me You'll let me be your man And please, say to me You'll let me hold your hand You'll let me hold your hand I wanna hold your hand Task 06 (5 points) Write a single RegEx to match the lines that access port 22 and only those packets Input file (hw0206.txt) Expected output of script 22.101.2.24 10.121.7.222 date time protocol ip-address port packet-size 2022-02-21 19:22:19 TCP 22.101.2.24 22 24 2018-22-22 02:25:12 UDP 10.221.7.22 2135 222 2200-05-22 22:26:22 UDP 22.122.6.62 2160 22 2012-22-20 15:43:22 TCP 10.121.7.222 22 122 1228-02-10 02:22:02 UDP 22.102.2.62 2089 22Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started