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 ?


Answer Posted / asif

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

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unix directory structure?

577


Explain kernal and shell?

641


How can you count the number of characters and lines in a file?

620


What is ‘the principle of locality’?

635


How to get the last word from a line in Unix file?

616






Explain Sticky bit?

644


What uses unix?

587


What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?

612


Name the different file types available with unix.

592


How to remove the directory in unix?

581


What are unix options?

551


List a few significant features of unix?

582


What are pipes and filters in unix?

789


You have a file called tonky in the directory honky. Later you add new material to tonky. What changes take place in the directory, inode, and file?

815


Name the data structure used to maintain file identification?

641