![]() w: This option prints the number of words present in a file. With more than one file name $ wc -l state.txt capital.txtĢ. ![]() With this option wc command displays two-columnar output, 1st column shows number of lines present in a file and 2nd itself represent the file name. l: This option prints the number of lines present in a file. Note : When more than file name is specified in argument then command will display four-columnar output for all individual files plus one extra row displaying total number of lines, words and characters of all the files specified in argument, followed by keyword total. Passing more than one file name in the argument. Passing only one file name in the argument. Let us consider two files having name state.txt and capital.txt containing 5 names of the Indian states and capitals respectively. ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |