I'm using, (uname -a says) Linux ip-x-x-x-x 188.8.131.52-2.fc8xen-ec2-v1.0 #1 SMP Tue Sep 1 10:25:30 EDT 2009 x86_64 GNU/Linux.
I've got a script, foo.sh with 100 lines of code and when I run
head -n 5 foo.sh
the command just "hangs" until I press Ctrl-C.
doesn't give much insight.
The path to head (via which) is /usr/bin/head
I'm SSH'd into the server if that makes a difference.
My shell is /bin/bash.
A workaround to use
sed 5q foo.sh
works great, but I'd like an answer to this question. Thanks everyone.