The -n specifies a format and "rz" right justifies with not leading zeros.
cat sourcefile.php | nl -n rz
To see the last 3 lines of any text file use tail:
cat sourcefile.php | tail -n1
To see how many lines a file has, combine them both:
cat sourcefile.php | nl -n rz | tail -n1











0 comentarios:
Post a Comment