How I use the head command for the files in current directory and subdirectories?

You could use find: find -name '*. Txt' -exec head {}.

If your shell supports it (zsh does, not sure about the rest), you can use ** syntax: head **/*.txt.

1 This is also supported in Bash 4 with shopt -s globstar or with ksh with set -o globstar. – Dennis Williamson Dec 11 '10 at 15:13.

Another option is to use - find -name '*. Txt' | xargs head Please note that -name need not work in all environments In that case, you can use find . | grep ".

Txt" | xargs head.

1 I've never heard of -name not working, but it's not uncommon for find to complain about missing arguments using your second form (at least in old versions). – Dennis Williamson Dec 11 '10 at 15:10.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions