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 pros of executing processes in the background?

0 Answers  


How to calculate the number of words in a file?

0 Answers  


What does unix .profile contains?

0 Answers   BPL,


What does a pipe(|) do?

0 Answers  


What are shell variables?

0 Answers  






Describe the term directory?

0 Answers  


Does unix still exist?

0 Answers  


How to copy files from one directory to other in unix?

0 Answers  


What is a superuser?

0 Answers  


Is unix written in c?

0 Answers  


How do you start and stop services in unix without using admin console?

0 Answers  


Is unix a kernel?

0 Answers  


Categories