LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help with copy/paste promt command. (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-copy-paste-promt-command-795176/)

ionutzic 03-13-2010 01:10 PM

Help with copy/paste promt command.
 
It have a question.. Can i transfer informations from 2 files and put them in one file witch contains the informations from both files.
For example:
Let say that a have two text files

1.txt + 2.txt = 1+2.txt

And there are o lot of lines to copy/paste it's imposible to do'it manualy.
I've tried with different command like cat and cp..but no result.
It's a little hard to explain.. and my english it isn't that good.
Thanks for now.Waiting for help.

repo 03-13-2010 01:13 PM

You can use
Code:

cat 1.txt > 1+2.txt
cat 2.txt >> 1+2.txt


troop 03-13-2010 01:15 PM

or just
Code:

cat 1.txt 2.txt > 1+2.txt

ionutzic 03-13-2010 01:32 PM

Quote:

Originally Posted by repo (Post 3897011)
You can use
Code:

cat 1.txt > 1+2.txt
cat 2.txt >> 1+2.txt




Thanks a lot.

ionutzic 03-13-2010 01:34 PM

Thanks a lot.. You are the best guys. you saved me :)


All times are GMT -5. The time now is 04:21 AM.