Single letter command to read files on linux

428 views Asked by At

We can use several commands to read files such as cat or head but I have had someone tell me there exists a single letter command to read all files in a directory. Is there truly anything out there or was he pulling my chain?

1

There are 1 answers

2
choroba On

You can try yourself:

#! /bin/bash
for char in {a..z} {A..Z} ; do
    $char
done

Maybe there's an alias defined, but commands tend to be a bit longer to increase redundancy to avoid typos.