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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is tilde unix?

519


Why was unix created?

502


Where unix is used today?

503


What is the file in unix?

468


Suppose I have one column with data smithjohnmichale the o/p should be smith,john, michale how we do in unix?

457






How to get the n-th field from a Unix command output?

555


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

530


Is mac a unix?

510


What do you mean by unix?

531


How do you sort in unix?

561


What is $path in unix?

514


Describe the responsibilities of shell in brief.

487


Explain how do you create special files like named pipes and device files?

531


Explain system bootup in unix.

552


Was unix the first operating system?

471