answersLogoWhite

0


Best Answer

If you try the command 'man sed' you see it is listed as one of the examples of what sed can do.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a sed command that swps first and second words in each line in a file unix and shell programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Programming a second remote causes first one to not work?

What kind of remote do you have.


Who was second in command of the first fleet?

There was no Captain of the Second Fleet of convicts to Australia, just skippers for each of the individual ships. This was because the Second Fleet was not placed under government command, but was contracted out to private shipowners and businesses.


What does the tee command do in Linux?

This example of a tee command: $ ls | tee test_1 will write the result of ls (show files in current directory) on the computer screen, and will also write the result into a text file in the home directory named test_1. Use something like $ ls -l | tee -a test_1 to add a second list without over-writing the first list. Note: without -a the second list would simply overwrite the first list. With -a the second list is appended to the end of the first list.


You are a BCA first year student you have no much knowledge about computer but you want to command on programming language what you do?

I go to http://www.programingtutorials.com/


What are the advantages of second generation programming language?

Easier to learn: Second-generation programming languages are easier to learn than first-generation languages. They are closer to human language and are more intuitive


First step you should take when creating a program?

The first step you should take when creating a program is to write an algorithm for it. An algorithm is a programming tool that offers a step by step solution to a programming problem.


Who is the chief of the orchestra?

The conductor. The second in command is the orchestra's concertmaster, usually its first violinist.


Does a lieutenant command a platoon?

A Lieutenant (Second or First) may be a staff officer, they may command a platoon, they may serve as a company Executive Officer, or, in the case of a First Lieutenant who is eligible for promotion to Captain, they may command a company.


What is the first mate and the crew salute him or her?

the answer is the captain


How do you Write a value returning function using c programming that receives two floating point numbers and returns true if the first formal parameter is greater than the second.?

bool isBigger (float a, float b) { return a > b;}


What is the function of registers in a micro controller?

Well , the register in micro processors or controllers is memory place that will save the values to be executed , for example if i want to add two numbers in 8085 i would first save ( or write ) the the first parameter into register "A" by applying this command "MVI A,80H" then i would write my second parameter into register "B" by applying "MVI B,20H" , now i can add ( sum ) them together bu using this command "ADD B" . the register "A" will have the result which is "A0". As you can see to make any operation i should save ( or write) the values into register then i will execute command on them . Good Luck !


How does oracle differ from c plus plus?

The first in a company developping a well-known database system, the second is a programming language.