3 ms·
Or just use grep <pattern> file?
by sgarland 2y ago
Or just use
grep <pattern> file?
- pastage 2y agoThe point is you do not know if file is a stream, an archive, too big, currently empty or just contains bad data for your current test. So using cat file is a way to standardize debugging or make development easier.
- cellularmitosis 2y agoAlso, you can replace cat with pv to get a progress bar. Or replace cat with socat to stream stdin from a network socket. Etc etc.