W
William James
ruby -ne 'print; gets if ARGF.eof' file*
The object is to print line 1 from file 1 and lines 2 through last
from every file.
A perl user alleged that under Unix:
Not having access to a Unix or Linux system, I would be grateful
if someone would test this.
The object is to print line 1 from file 1 and lines 2 through last
from every file.
A perl user alleged that under Unix:
That will print out the file contents and then wait for more input from stdin
so you have to follow it with ^D to signal EOF.
Not having access to a Unix or Linux system, I would be grateful
if someone would test this.