This could be done using the wc (word count) command, with the -l flag (that flag counts the number of lines in a file).
display.dates | wc -l
As display.dates is processed, its output is piped to wc -l, which displays how many lines it read.
Use the batch command: it will send the job to the batch queue, and the results will be sent by mail. Meanwhile, I can work on that letter I have to write.
!!
The last command used beginning with la is recalled using
!la
In the last command 54 can be changed to 45 by issuing
^ 54^ 45^(NOTE: the command will immediately be executed).
I can find out which aliases I am now using by typing
alias
In many instances
echo $shellwill reveal which shell you are using.