Shell script to display words of a file in ascending order, Programming Languages

 W.A.S.S to display all the words of a file in ascending order.

 

Program

 

# W.A.S.S to display all the words of a file in ascending order.

 

cat base.sh|tr -s " "|tr " " "\n"|tr -cd "[a-z][A-z][\n]"|sort

 

Output

 

base

base

bc

echo

echo

echo

echo

echo

Enter

Enter

Enter

i

ibaseiobaseox

input

no

no

o

Posted Date: 9/26/2012 7:56:59 AM | Location : United States







Related Discussions:- Shell script to display words of a file in ascending order, Assignment Help, Ask Question on Shell script to display words of a file in ascending order, Get Answer, Expert's Help, Shell script to display words of a file in ascending order Discussions

Write discussion on Shell script to display words of a file in ascending order
Your posts are moderated
Related Questions
Write a program to handle a book collection. The data on each book might be title, author, publication date, book number and  cataloging details. Allow for adding or deleting books

Given a file named maze1.txt whose contents is 1 0 2 2 1 2 3 0 3 2 2 1 2 0 2 2 3 0 1 1 3 1 0 0 2 0 3 0 0 1 2 0 3 2 2 0 1 2 3 2 1 0 0 1 1 0 0 0 your program when run as a.out

Write a pseudocode for a program that reads a temperature as a whole number from a user and outputs a “probable” season (winter, sprint, summer, or fall) depending on the temperatu

how to rewrite C++ program the DNAStrand class (DNA Project) to instead store the nucleotide sequence in a dynamically-allocated array?

Linear Programming Consider the following optimization problem: min x s.t. x ≥ max{a1, a2, . . . , an} Rewrite this problem as a Linear Programming Problem. What is the

program the following exercises using JAVA and JENA API: SPARQL endpoint to be queried: QUERY:">http://services.data.gov.uk/education/sparql QUERY: What are the school’s names th

1.  A function that produces the Collatz sequence and counts the number of terms. 2.  A main function that calculates interesting values about the Collatz sequence. 1.The Col

THERE IS ANY1 COULD HELP ME WITH NETLOGO WORK

Define a Prolog predicate flatten(List, FlattenedList)  that asserts List  is any nested list of atoms and  FlattenedList  is the same list with the nesting removed. The atom [] sh

1. Write a program that reads a minimum of three command line arguments and displays the program's results. a. Command Line arguments:  i. The first argument will be the program