How to add content of one file into another file at the beginning

Answer Posted / ahmed

Use sed command
sed -i'' '1 i this is firts line' temp123

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

630


What is command statement?

538


What are awk commands?

578


What is pipe command in unix?

662


What is the size of time_t?

637






Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

582


Does cp command overwrite files?

614


Can you enlist some commonly used network commands?

594


What is the command to find hidden files in the current directory?

572


What is the use of the tee command?

592


Which command will print your home directory on screen?

538


How do I search a whole word in vim?

683


What does grep v do?

555


What are grep patterns?

571


What are filter commands in unix?

547