Shell script to remove colons from a colon–separated record, Programming Languages

W.A.S.S to remove colons from a colon – separated record.

 

Program

 

# W.A.S.S to remove colons from a colon – separated record.

#07MCG20

 

echo -e "Enter the file name: \c"

read fnm

 

cat $fnm | tr ":" " " > temp.txt

cat temp.txt > $fnm

rm temp.txt

 

Output

 

Befoe

 

cat temp3.txt

Narendra  : Agrawal :  mca :  svit

Gujarat :  university

 

sh colon.sh

 

After

 

cat temp3.txt

Narendra   Agrawal   mca   svit

Gujarat   university

Posted Date: 9/26/2012 7:55:29 AM | Location : United States







Related Discussions:- Shell script to remove colons from a colon–separated record, Assignment Help, Ask Question on Shell script to remove colons from a colon–separated record, Get Answer, Expert's Help, Shell script to remove colons from a colon–separated record Discussions

Write discussion on Shell script to remove colons from a colon–separated record
Your posts are moderated
Related Questions
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

what is the c.

I need help I want to implement the Genetic Algorithm for Shortest path Kindly Help me I will be thankful to you

Attributes to Elements Create an XSLT stylesheet that converts all attributes found in a given XML document to elements.Use the sample instance from question 2 to test the tra

I need someone to make an ER diagram.

Introduction A new online system for purchasing carsis being designed and you have been contracted to write a C# console application program that models the proposed functio

What is .NET? It is a foundation fairly neutral structure. Is a coating between the son and the selection language? It can handle many selection dialects, such as VB.NET,

Why is this correct/when is this the right idea

Calculate the total price to purchase all the components required to build a state-of-the-art gaming computer from components available on the internet. Before attempting this exer

Detailed Description: • The program will take temperature readings as input from user for specified number of consecutive days. • Program will store these temperature values into