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
Explain what is HTML language with an example? HTML is the HyperText Markup Language. HTML files are text files featuring semantically tagged elements. HTML filenames are suff

Design an application that opens and analyses word files. Requirements: Create an application that analyses text documents. It should open a text file, read each word into an ap

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

The last matrix operation which we'll see is matrix multiplication. Now there we will start along with two matrices, A nxp and B pxm . Remember hat A must have similar number of c

The schematic of the traffic light controller is as shown in figure 1. There are three control buttons on the panel: HAZ (Hazard), LT (Left) and RT (Right). Whenever, HAZ is clicke

Expertsmind brings you  unique  solution in java assignments Just in Time Compiler In processing, just-in-time system (JIT), also known as energetic interpretation, is a m

Implement the Prim's algorithm with array data structure as described in slide 12 of the file 04mst.ppt. Your program should have a runtime complexity of O(n2) and should be as eff

write a program to draw a cow. Now, draw a cow standing amongst the grass, with (say) 500 blades of grass. Each blade of grass should be a separate random green line. Do all your d

UNIX Operating System 1. Explain all the layers present in a UNIX Architecture? List and explain each of them. 2. Describe the term Inter-Process Communication. What are var