following two file are

file a file b
110 aab 330 xxl
i want the output like

file a fileb
110 xxl 330 aab
give solution ?


Answers were Sorted based on User's Feedback



following two file are file a file b 110 aab 330 xxl i want the output like file a ..

Answer / satyaranjan samal

sed 's/aab/xxl' file a ; sed 's/xxl/aab' file b ; cat file
a ; cat file b

Is This Answer Correct ?    9 Yes 1 No

following two file are file a file b 110 aab 330 xxl i want the output like file a ..

Answer / asif

sed 's/aab/xxl' file a ; sed 's/xxl/aab' file b

Is This Answer Correct ?    3 Yes 1 No

following two file are file a file b 110 aab 330 xxl i want the output like file a ..

Answer / raja

sed 's/110 aab/110 xxl/' file a
sed 's/330 xxl/330 aab/' file b

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Unix General Interview Questions

What are the entities that are swapped out of the main memory while swapping the process out of the main memory?

0 Answers  


What are the layers of unix operating system?

0 Answers  


What are hidden files in unix?

0 Answers  


List some features of unix.

0 Answers  


Explain the method of changing file access permission?

0 Answers  






Explain about shell aritmetic operators and functions?

0 Answers   HCL,


What are the various ids in unix processes?

0 Answers  


Explain what is standard unix streams ?

0 Answers  


How many types of files are there in unix?

0 Answers  


Which is the shell of unix?

0 Answers  


What is unix orphan process?

0 Answers  


Why is unix better than windows?

0 Answers  


Categories