💾 Archived View for heavysquare.com › unix › 9980-fail-on-input.txt captured on 2021-12-03 at 14:04:38.
-=-=-=-=-=-=-
Task is to succeed in case there's zero lines of input, but fail otherwise. Should let the input through. % seq 42 43 | sed '$q1' 42 43 % echo $? 1 % seq 42 41 | sed '$q1' % echo $? 0 %