I don't understand why the elite don't just use grep something < somefile.txt
Name:
Anonymous2010-06-21 9:26
$ cat a.txt b.txt > c.txt $ cat a.txt(yes, I know about less. No, I won't use it -- my terminal supports scrolling) $ { a; b; cat data.txt; c; } | d(you got nothing on this)
Using cat to read files without concatenating them seems unintuitive. Isn't there another program in coreutils for just reading files (not "more" or "less")?
>>25
it's only optional on shit systems: This utility shall be provided on systems that both support the User Portability Utilities option and define the POSIX2_CHAR_TERM symbol. On other systems it is optional.
if you have such a system, use ex -R. ed is the standard editor. it can't do what ex -R does.
>>27
using cat or dd like that is only destructive to defective, improperly installed, and/or misconfigured audio equipment.
smashing a sound card with a hammer, on the other hand, is destructive regardless of the quality, installation, and configuration of the sound card.
>>28 using cat or dd like that is only destructive to defective, improperly installed, and/or misconfigured audio equipment.
I think you found a new way to troll audiophiles. I'd love to see someone destroy a >$50k HiFi setup with platinum cables using just cat /dev/urandom > /dev/dsp.
>>28
I must agree. Not only did /dev/dsp survive both cat and dd from various garbage sources, but also did /dev/midi, which was connected to a hardware midi synthesizer. (The effect was hilarious and a bit hypnotic when /dev/urandom was used.)
>>30
No, it's the audiophiles who get trolled; you know that they would buy speakers with platinum-plated connectors in an instant.
I mean, they tend to buy $500 devices which don't even have on/off switches.
So I hear that if you cat your entire hard drive to /dev/dsp, you'll hear the music files on your drive between long periods of noise. What file format does the music have to be in?
>>6
Did you, what, just find out about pipes and think you're only one who knows the secret? Just how from my post did you come to conclusion that I don't know what less does?