How can you count the number of characters and lines in a file?
Answer / Namita Mishra
To count the number of characters in a file, use the wc -c command. To count the number of lines, use the wc -l command. The wc (word count) command provides the total number of characters, words, and lines in a file.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is unix orphan process?
What is unix operating system explain various components of unix operating system?
What are the basic responsibilities of a shell?
How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?
How to reverse a string in Unix?
What are the essential features of the unix operating system?
Which unix shell is best?
What does cd mean in unix?
Is a form of interprocess communication in unix?
What is ps1 and ps2 in unix?
What is unix shell scripting used for?
what is wrong with this interactive shell script?