Unix Blog

 
 
 
$ wc -w abc
     11 abc

    Related Post:
  1. Write a shell program to find the position of substring in given string

  2. How would you know machine\’s name in the network?

  3. Unix Commands and description of ls,logout,mkdir,rmdir,rm,cd,man,talk,write,pico,pine,more,sz,rz,telnel,ftp,archie,irc,lynx,gopher,tin,trn,passwd etc

  4. Rename a file from first1.txt to first2.txt

  5. Shell script to check dir directory if it exists then change the path, if not then create dir with that name and also check for file name not exists

  6. Write a shell program to count the characters, count the lines and the words in a particular file

  7. Find all lines in a file with words longer than 4 characters, assuming that words are separated by spaces except at the beginning or end of line

  8. Write a shell script to reverse a number supplied by a user

  9. Sort Numeric file

  10. Shell script which would Receive the log name during execution ,obtain information about it from /etc/passswd and display this information on screen

  11. Shell script which takes year as an input and displays whether it is leap year or not. If year is not provided then take current year as an input

  12. Write a shell script that accepts a string from the terminal and echo suitable message if it doesn\’t have at least ten characters

  13. How would u display the hidden files?

  14. How would you know name of the users who are login?

  15. Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit

  16. Write a shell script, which displays a list of all files in the current directory to which you have read, write and execute permissions

  17. How would we see content of the file?

  18. Program to calculate the factorial of a number

  19. Shell Script to read data from a file

  20. How would u get online help of cat command?

 
 
Didn't find what you were looking for? Find more on Count no.of lines in file abc?