# The UNIX way a transcript To illustrate the UNIX method of using small programs dedicated to specific tasks and where output of one is the input to another. The following example shows creating and editing a dynamic playlist using four distinct programs: * ls (list files) * rlwrap (provide searchable command history and command line editing) * ed (the standard UNIX text editor) * mpg123 (mpeg music player) Here is the transcript: hotaru$ rlwrap ed '!ls -1 /home/archive/media/Music/Soul\ II\ Soul ... 1559 ,n 1 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 2 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 3 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 4 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 5 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 6 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 7 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 8 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 9 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 10 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 11 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 12 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 13 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 14 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 15 /home/archive/media/Music/Soul II Soul/Volume IV_ The Clas ... 13,15d w !mpg123 -@ - High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and ... version 1.32.10; written and copyright by Michael Hipp and ... free software (LGPL) without any warranty but with best wi ... Directory: /home/archive/media/Music/Soul II Soul/Volume IV_ The C ... Terminal control enabled, press 'h' for listing of keys and functi ... Playing MPEG stream 1 of 12: 01 Back To Life (However Do You Want ... MPEG 1.0 L III cbr320 44100 stereo Title: Back To Life (However Do You Want Me) ... Comment: 1 ... Year: 1993 ... ## Summary Only once you start thinking in this way can the true intention and power of UNIX be realized.