write a shell script that counts a number of unique word
contained in the file and print them in alphabetical order
line by line?
Answer Posted / neennii
sort -u wordtestfile.txt | tee outuniquefile.txt | echo "total unique words are" `wc -w` ; cat outuniquefile.txt
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
how to get part of string variable with echo command only?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
What is bash coding?
How do I run a bin bash script?
What does .sh file contain?
Is bash a shell script?
How to find all the files modified in less than 3 days and save the record in a text file?
How to get script name inside a script?
Is it possible to substitute "ls" command in the place of "echo" command?
What is the crontab?
Explain about debugging?
How to get the last line from a file using just the terminal?
Can shell script run on windows?
What are scripts in psychology?
What is the meaning of $1 in shell script?