Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Pipes — joining commands · ⁨Pipes — การเชื่อมต่อคำสั่ง⁩

English

The big idea: pipes

  • This is what makes the shell powerful. A pipe | sends one command's output straight into the next command:
  • cat produces the lines; sort receives them and puts them in order. No file in between.

ไทย

ความคิดหลัก: ท่อ (Pipes)

  • นี่คือสิ่งที่ทำให้ shell มีอำนาจ ท่อ | ส่งผลลัพธ์ของคำสั่งหนึ่ง直接进入คำสั่งถัดไป:
cat fruits.txt | sort
  • cat สร้างบรรทัด; sort รับและเรียงลำดับ它们在 No file in between.

ท่อส่งผลลัพธ์ของคำสั่งหนึ่ง直接进入คำสั่งถัดไป: cat | sort | uniq

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP