What is wc in shell script?



What is wc in shell script?..

Answer / Amrish Soam

wc (word count) is a command in Unix-like operating systems used to print the number of lines, words, and characters in a file or given input. It can be useful for various purposes like checking the length of files, counting occurrences of specific words, etc.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

How to print all array elements and their respective indexes?

1 Answers  


What is a scripting language simple definition?

1 Answers  


What will happen to my current process when I execute a command using exec?

1 Answers  


write a shell script that accepts name from user and creates a directory by the path name, then creates a text file in that directory and stores in it, the data accepted from user till STOP, displays the no. of characters stored in the file.Program stops if directory name is null

1 Answers  


What is the lifespan of a variable inside a shell script?

1 Answers  


how to search for vowels a,e,i,o,u appearing in the same sequence in a file

4 Answers   Amazon,


How do I run a script on mac?

1 Answers  


Why are there shells on the beach?

1 Answers  


Differentiate between ‘ and ” quotes.

1 Answers  


how to delete all the files with extension .dat rom a directory tree from root to third level in a single unix command?

4 Answers  


How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)

1 Answers   NTT Data, TCS,


what are bootlevel in linux?which level is booting by default.

5 Answers   Symphony,


Categories