LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2010, 02:10 PM   #1
ionutzic
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
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.
 
Old 03-13-2010, 02:13 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
You can use
Code:
cat 1.txt > 1+2.txt
cat 2.txt >> 1+2.txt
 
Old 03-13-2010, 02:15 PM   #3
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
or just
Code:
cat 1.txt 2.txt > 1+2.txt

Last edited by troop; 03-13-2010 at 03:03 PM.
 
Old 03-13-2010, 02:32 PM   #4
ionutzic
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
You can use
Code:
cat 1.txt > 1+2.txt
cat 2.txt >> 1+2.txt


Thanks a lot.
 
Old 03-13-2010, 02:34 PM   #5
ionutzic
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a lot.. You are the best guys. you saved me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: xclip Does Copy-and-Paste on the Linux Command Line LXer Syndicated Linux News 0 07-03-2009 02:00 AM
How to copy-paste on command line? jameshao Linux - General 3 02-02-2009 02:14 AM
How do you copy and paste a file from a command prompt? thenewguy05 Linux - Newbie 6 07-13-2004 04:41 PM
copy and paste in with command exper Linux - Software 1 12-26-2003 10:28 AM
Copy Paste under command line? Stingreen Linux - General 7 02-10-2002 07:46 PM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration