At the command line:
$ ruby -pe 'puts' < file.txt
#prints line number 52 from file.txt $ ruby -pe 'next unless $. == 52' < file.txt