-4

Please give the answer for what purpose we use this command only single '|'

Please tell me.

1 Answers1

0

| is used to pipe the output of command 1 into the input for command 2.

For example, ls | grep .jpg would pipe the output from ls into grep and only show files with .jpg in the title.

Will
  • 2,292