2 added 327 characters in body
source | link
cat<tmp.1|wc>tmp.3

This is the same as

wc <tmp.1 >tmp3

It will count the number of words, lines and bytes in tmp.1 and write the result to tmp.3. This command line produces no output on the terminal when run in this way.

The other output saying Done is from an earlier invocation of ls that was run as a background job (started as ls ... &). That job finished just as you ran the wc command, and the shell reported that it had done so.


Judging from this question and from your previous question, you seem to run odd commands as background jobs. Don't do that. Simply don't run commands with & appended to the end if you don't need to run them as asynchronous processes.

Look for a tutorial on-line that explains job control in bash, or read the questions here.

cat<tmp.1|wc>tmp.3

This is the same as

wc <tmp.1 >tmp3

It will count the number of words, lines and bytes in tmp.1 and write the result to tmp.3. This command line produces no output on the terminal when run in this way.

The other output saying Done is from an earlier invocation of ls that was run as a background job (started as ls ... &). That job finished just as you ran the wc command, and the shell reported that it had done so.

cat<tmp.1|wc>tmp.3

This is the same as

wc <tmp.1 >tmp3

It will count the number of words, lines and bytes in tmp.1 and write the result to tmp.3. This command line produces no output on the terminal when run in this way.

The other output saying Done is from an earlier invocation of ls that was run as a background job (started as ls ... &). That job finished just as you ran the wc command, and the shell reported that it had done so.


Judging from this question and from your previous question, you seem to run odd commands as background jobs. Don't do that. Simply don't run commands with & appended to the end if you don't need to run them as asynchronous processes.

Look for a tutorial on-line that explains job control in bash, or read the questions here.

1
source | link

cat<tmp.1|wc>tmp.3

This is the same as

wc <tmp.1 >tmp3

It will count the number of words, lines and bytes in tmp.1 and write the result to tmp.3. This command line produces no output on the terminal when run in this way.

The other output saying Done is from an earlier invocation of ls that was run as a background job (started as ls ... &). That job finished just as you ran the wc command, and the shell reported that it had done so.