Write a seed command which will delete all blank lines in the file in. data and
ID: 3805141 • Letter: W
Question
Write a seed command which will delete all blank lines in the file in. data and write the results into the file out. data. the command should be entirely on the command line. Write a seed script which will in all lines starting with "*XCOMM" replace the string' "*XCOMM" with */*' characters and end the line with **/'. in the lines, which started with "*XCOMM" replace "X11R6" with ''X Free SG". Do not replace X11RG in any other lines. An ISP (Internet Service Provider) has a data file which contains information about users connect times and bandwidth usage as well as storage usage. There are two types of lines in the file, a connect line which has 5 fields containing the login, start and stop times as well as the bandwidth usage broken into the number of bytes in versus the number of bytes out. Maynard 1378 2463 12379894 34563 and a storage usage line which contains the number of bytes of disk space currently being used by the user which has the following format: * storage* *storage* Maynard 2784643 Write an ask script to find the total amount of connect time used by the user Maynard. the total amount of bandwidth consumed (both in and out) as well as the maximum amount of storage used during this period. the output should look like: Maynard Connect Time = 1085 Bandwidth = 12314457 Storage = 2784643 Write a perl script which will print out the pathnames of all text files which are under any of the directories in the file whose name is given on the command line.Explanation / Answer
Multiple Questions : Answering one (Question 1).
sed '/^$/d' in.data > out.data
The above command will delete all blank lines from in.data and write to out.data.
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.