LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 07-20-2005, 03:18 AM   #1
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Rep: Reputation: 32
MSDOS version for cat command


hi,

i wondered if anyone remembers MSDOS version of cat command: i wanna put together a split file. thanks.
 
Old 07-20-2005, 03:23 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I think the command is : type
 
Old 07-20-2005, 03:58 AM   #3
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
I'd go for "copy /b file1+file2+file3 resultfile"
 
Old 07-20-2005, 11:42 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
MSDOS questions, like windows questions go to either the General forum. Which is where you will find this thread.
 
Old 07-21-2005, 02:44 AM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
The command is "type"
 
Old 07-21-2005, 04:46 AM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
If you read the initial mail, it's a question about putting together a split file. As he doesn't say if it's text or binary, I think that my answer is what he was looking for.

frankie_DJ, maybe you could give us some feedback?
 
Old 07-21-2005, 05:12 AM   #7
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Let's say you have 2 files, file1 and file2, and out of them you want to make another file - file3. The type command would be:
Code:
type file1 file2 > file3
 
Old 07-21-2005, 07:08 AM   #8
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
C:\TEMP>type test1
abc
C:\TEMP>type test2
def

=== solution 1 ===

C:\TEMP>type test1 test2 > test3

test1



test2


C:\TEMP>type test3
abcdef

=== solution 2 ===

C:\TEMP>copy /b test1+test2 test3
test1
test2
1 file(s) copied.

C:\TEMP>type test3
abcdef

[but copy + will work with binaries as well]
 
Old 07-21-2005, 11:49 AM   #9
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
type a+b=c worked for me.

Not sure how it would work for binary files.
 
Old 07-22-2005, 08:08 AM   #10
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Original Poster
Rep: Reputation: 32
Sorry guys,

I only read the first few posts. I used the copy method, that's the one I had stored somewhere deep in my memory. Thnks anyway/
 
  


Reply



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
cat command for text files minm Linux - Newbie 5 07-03-2005 12:32 AM
how to run cat command in silent mode user_linux Linux - Newbie 4 06-16-2005 10:21 AM
cat command juanb Linux - Newbie 4 08-19-2004 11:14 AM
what are the limits to the 'cat' command? Frybyte Linux - General 12 04-22-2004 04:32 PM
cat Command Moeses Linux - General 1 06-20-2002 03:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

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

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
Open Source Consulting | Domain Registration