The two standard commands
Here, it looks like you want to see every file except the single one whose name begins with a dot. Dot files are “hidden” under unix: they don't appear in the default output of
head
and tail
print a header with the file name if you pass them more than one file argument. To print the whole file, use tail -n +1
(print from the first line onwards, i.e. everything).Here, it looks like you want to see every file except the single one whose name begins with a dot. Dot files are “hidden” under unix: they don't appear in the default output of
ls
or in a wildcard match. So matching every non-hidden files is done with just *
.tail -n +1 *
(Strictly speaking, tail -n +1 -- *
is needed in case one of the file names begins with a -
.)
No comments:
Post a Comment