4in the assignment4 directory are several log files


4.In the assignment4 directory are several log files containing IP addresses. Create a single log file from these 7 log files using a single line of commands that are chained together. e.g. passing output from one command as input into another. The resulting file should contain the results in the following format:

Monday

165.234.216.100

192.168.1.4

...

Tuesday

165.234.216.100

...

etc

5.In the unorganized directory are numerous files. The files in these directories are unorganized and need to organized.

a.Using single lines of commands create files that can be read in by xargs for moving files. The files should separate the files to allow xargs to do the following:

i.Move bak files into a directory called backups

ii.Move jpgs into a directory called 2015_jpgs

iii.Move all non_junk files to the directory called not_junk inside the text_docs directory.

b.Run xargs on the file to move the backup files to the correct directory. In the same line (before hitting enter) archive the backup directory containing the files using bzip2 and delete the original files.

c.Move the jpg files to the 2015_jpgs using the file you created earlier.

d.Move all not_junk files to the directory called not_junk using the file you created.

6.Find and remove all the junk files and the junk directory.

7.Rename jpeg files to png files using xargs and archive these files using gzip compression.

You must chain as many commands together as possible for each part of this assignment to receive credit for the problem number.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: 4in the assignment4 directory are several log files
Reference No:- TGS01149697

Expected delivery within 24 Hours