1.

Solve : Cat Command?

Answer»

Hi,

After executing the following command, will the CONTENTS of the file called inside be the same as the contents of the file called outside?

cat > inside < outside


Thank you
Quote from: dgigga on October 22, 2013, 01:50:11 PM

Hi,

After executing the following command, will the contents of the file called inside be the same as the contents of the file called outside?

cat > inside < outside


Thank you

Don't understand what you are asking, but when you cat a file it just DISPLAYS whats in it.

For example if you cat helloworld.txt

it will display

HELLO WORLD!

And that is what you will see.bash-3.2# echo hello > outside
bash-3.2# cat outside
hello
bash-3.2# cat > inside < outside
bash-3.2# cat inside
hello

Quote from: jormeno on October 31, 2013, 12:25:23 PM
Don't understand what you are asking, but when you cat a file it just displays whats in it.

Why didn't you just try it? (Do you know what redirection is?)

Quote from: Salmon Trout on October 31, 2013, 01:56:48 PM
Why didn't you just try it?

You should follow your own signature...

Quote
You won't know unless you try.
bash-3.2# cat > test < client-control.sh
bash-3.2# DIFF --report-identical-files test client-control.sh
Files test and client-control.sh are identical


Discussion

No Comment Found