Clears the screen.
clear
Clear the screen.
less
The command less writes the contents of a file onto the screen a page at a time. Type % less science.txt
Simple searching using less
Using less, you can search though a text file for a keyword (pattern). For example, to search through science.txt for the word 'science', type % less science.txt
then, still in less, type a forward slash [/] followed by the word to search /science
wc (word count)
A handy little utility is the wc command, short for word count. To do a word count on science.txt, type% wc -w science.txt
To find out how many lines the file has, type
% wc -l science.txt
No comments:
Post a Comment