Syntax : $wc<filename> Options : -c to display no of characters. – -l to display only the lines. – -w to display the no of words. – FILTERS AND PIPES It is used to display the top ten lines of file. HEAD : $head<filename> Syntax: This command is used to display the last ten lines of file. TAIL : Syntax: $tail<filename> This command shows the page by page a screen full of information is displayed after PAGE : which the page command displays a prompt and passes for the user to strike the enter key to continue scrolling. Syntax: $ls –a\p It also displays the file page by page .To continue scrolling with more command , MORE : press the space bar key. $more<filename> Syntax: This command is used to sort the data in some order. SORT : Syntax: $sort<filename> It is a mechanism by which the output of one command can be channelled into the PIPE : input of another command. Syntax: $who | wc-l TR :The tr filter is used to translate one set of characters from the standard inputs to another. Syntax: $tr “[a-z]” “[A-Z]” INPUT : Valid Input-
Syntax : $wc<filename> Options : -c – to display no of characters. -l – to display only the lines. -w – to display the no of words. FILTERS AND PIPES HEAD : It is used to display the top ten lines of file. Syntax: $head<filename> TAIL : This command is used to display the last ten lines of file. Syntax: $tail<filename> PAGE : This command shows the page by page a screen full of information is displayed after which the page command displays a prompt and passes for the user to strike the enter key to continue scrolling. Syntax: $ls –a\p MORE : It also displays the file page by page .To continue scrolling with more command , press the space bar key. Syntax: $more<filename> SORT : This command is used to sort the data in some order. Syntax: $sort<filename> PIPE : It is a mechanism by which the output of one command can be channelled into the input of another command. Syntax: $who | wc-l TR :The tr filter is used to translate one set of characters from the standard inputs to another. Syntax: $tr “[a-z]” “[A-Z]” INPUT : Valid Input-
OS-Lab-Manual.docx