Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

The good old days

Name: Anonymous 2022-05-07 9:16

Early on, during the first year of Unix, an ideal was formed for what a Unix program would be: it would receive a number of filenames as command-line arguments, and it would read them. If no filename was given, it would read standard input. It would write its output to standard output. There may be a small number of other fixed command line arguments. The options did not exist. This made it easy to combine programs: the output of one program could be the input of another.

There were of course variations. The
echo
command read nothing. The
cp
,
mv
and
rm
commands did nothing. However, the "filter" was the ideal.

$ cat *.txt | wc


In the example above, the
cat
program reads all files with names with a .txt suffix, writes them to its standard output, which is then redirected to the
wc
program, which reads its standard input (it doesn't have received no file name) to count the words. In short, the above pipeline counts words in all text files.

It was quite powerful. It was also very easy

Name: The Teacher 2022-05-07 10:29

Show me how you `cut` that output to include only line counts.

Name: Anonymous 2022-05-07 10:38

>>2
Why would you need that? If for some reason it's necessary, you use
lc
.

Name: The Teacher 2022-05-07 10:44

>>3
WHO WILL WRITE THIS PROGRAM? YOU?

Name: The Teacher 2022-05-07 10:45

>>3
DESCARTES THE COWARD?

Name: The Teacher 2022-05-07 10:48

No, I've got one for you, Barbara Streisand.

cat *.txt | wc | awk '{print($1)}'

Name: The Teacher 2022-05-07 10:49

THE TEACHER WINS AGAIN BY KNOCK OUT!

Name: Anonymous 2022-05-07 13:05

uhh self-destruct.exe

Name: Anonymous 2022-05-07 13:23

$cat? Sounds very heinous. The whoal thing is Anus!

Name: Anonymous 2022-05-07 20:36

UNIX is gay

Name: Anonymous 2022-05-07 23:51

U is gay๐Ÿ˜‚

Name: Anonymous 2022-05-08 16:32

>>7
Are you retarded?

Name: Anonymous 2022-05-08 17:23

yes๐Ÿ˜Ž

Name: Anonymous 2022-05-09 4:28

>>12
redneck

Name: Anonymous 2022-05-09 4:39

red neckkk + blu balls = red bawls. and red bawls they give you wings

Name: Anonymous 2022-05-09 4:50

>>15
that's garbage it's the bounty of the dogs

Name: Anonymous 2022-05-09 5:29

its a doggie dog world out there

Name: Anonymous 2022-05-09 7:33

>>17
AWRF?

Don't change these.
Name: Email:
Entire Thread Thread List