Question: Answer the questions in Linux command 1. Create a single command to read a file called program.c and write a file called unreadable.c, by replacing

Answer the questions in Linux command

1. Create a single command to read a file called program.c and write a file called unreadable.c, by replacing all newlines and tabs with spaces, and replacing all multiple consecutive spaces with a single space. The result should still be a legal C program but not exactly readable.

2. Write a single shell command line, possibly consisting of multiple commands (separated by semicolons), that will create a file diffs.txt containing a list of all files found in my Documents directory that arent also found in yours. Assume your current working directory is your home directory.

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!