Question: cd to the directory called final that is located within my home directory. A copy of the group file called mygroup was created using the

cd to the directory called final that is located within my home directory.

A copy of the group file called mygroup was created using the ! as the field separator. The fields should be separated using a : not a !.

Create a single command string that will modify the file called mygroup and change all occurrences of the ! to a :. The command string must also sort the file numerically on the GID field and then save the output to a file callednewgroup.

Replace the ### in the command string below with the correct characters to make the above described work.

sed 's/\!/\:/g' mygroup | sort -### -t: > ~/newgroup

Enter only the characters in your answer.

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!