summaryrefslogtreecommitdiff
path: root/testsuite/tail/tail-n-works
blob: 0e1319fa6ca70c961383926d7ce4e02ede0be1c0 (plain)
1
2
3
4
$ECHO -ne "abc\ndef\n123\n" >input
$ECHO -ne "def\n123\n" >logfile.ok
busybox tail -n 2 input > logfile.bb
cmp logfile.ok logfile.bb