Comparing modified times of files

Tom Christiansen tchrist at convex.COM
Fri Mar 22 11:26:35 AEST 1991


>From the keyboard of mjf at mjm.mjm.com (Mark Fresolone):
:
:	ls -t file1 file2 | line	# returns newest
:	ls -rt file1 file2 | line	# returns oldest

line: command not found

Perhaps you mean "sed -ne 1p"?

--tom



More information about the Comp.unix.shell mailing list