[comp.sys.amiga.introduction] Cat files <where?>

sss10@cunixb.cc.columbia.edu (Gun control is a firm grip) (05/30/91)

Recently I had to add a section of ~20 lines to my mountlist and wanted an 
easy way of doing it <other than typing it all in> but I didnt know if a
"Cat" command existed on my WB disk <1.3> and where I could find one. I 
ended up sending it to my unix account and typing 
cat <file1> <file2> > <newfile>

anyway, I got FFS up and running on my 500 for no real reason other to have
something else to play with and when I type "info" it says on my FF1: disk
<its FFS formatted> "876 K free". I thought FFS allowed for MORE memory
<4%> to be stored on floppies?

ah well a somewhat minor snit. Im also looking for a different "info" command
that tells me in bytes how much I have left on various disks. Are any such prgs
on Ab20 and under what name<s>?

thanks

**********************************PiRho****************************************
"All power comes from the barrel of a gun"  //
sss10@cunixb.cc.columbia.edu            \\ // Amiga makes it possible
                                         \X/  

dave@cs.arizona.edu (Dave Schaumann) (05/30/91)

In article <1991May29.222408.27731@cunixf.cc.columbia.edu> sss10@cunixb.cc.columbia.edu (Gun control is a firm grip) writes:
>
>Recently I had to add a section of ~20 lines to my mountlist and wanted an 
>easy way of doing it <other than typing it all in> but I didnt know if a
>"Cat" command existed on my WB disk <1.3> and where I could find one. I 
>ended up sending it to my unix account and typing 
>cat <file1> <file2> > <newfile>

There are two commands in the CLI that perform similarly to Unix's "cat":
join, which allows concatination of upto 15 files into a new file, and
type, which sends the contents of a file to stdout.

Note that you should also be able to easily concatinate two files with any
text editor worth the name.  Emacs is certainly capable of this.

>[stuff about FFS & info command deleted]
Sorry, I can't help with these...

-- 
Dave Schaumann      | There is no cause so right that one cannot find a fool
dave@cs.arizona.edu | following it.	- Niven's Law # 16

doctorj@en.ecn.purdue.edu (Jeffrey W Davis) (05/30/91)

In article <1991May29.222408.27731@cunixf.cc.columbia.edu> sss10@cunixb.cc.columbia.edu (Gun control is a firm grip) writes:
>
>Recently I had to add a section of ~20 lines to my mountlist and wanted an 
>easy way of doing it <other than typing it all in> but I didnt know if a
>"Cat" command existed on my WB disk <1.3> and where I could find one. I 
>ended up sending it to my unix account and typing 
>cat <file1> <file2> > <newfile>

There are may unix 'cat' clones out there, but most do not allow the
creation of a file with re-direction.  AmigaDOS supplies a 'join' command
to do the same thing.

join <file1> <file2> AS <newfile>

>anyway, I got FFS up and running on my 500 for no real reason other to have
>something else to play with and when I type "info" it says on my FF1: disk
><its FFS formatted> "876 K free". I thought FFS allowed for MORE memory
><4%> to be stored on floppies?

The 'info' command is a little deceptive when it comes to the FFS.  Info
lists free disk space in blocks instead of bytes.  The problem here is that
a FFS block is larger than a normal DOS block.  I don't have my documentation
in front of me, but I believe a DOS block is 448 bytes and an FFS is 512 bytes
long.  There will be fewer blocks on a FFS disk and 'info' doesn't currently
take FFS into account (WB1.3.3) in its drive capacity calculations.  Disks
formatted with the FFS will actually appear smaller to 'info' even though this
is not the case at all.  I had the darndest time trying to figure out why my
SCSI 85M harddrive only formatted to 82M under FFS!

>thanks

>**********************************PiRho****************************************
>"All power comes from the barrel of a gun"  //
>sss10@cunixb.cc.columbia.edu            \\ // Amiga makes it possible
>                                         \X/  

***********************************************************
* Jeff Davis                * Relax! And get into    ///  *
* doctorj@en.ecn.purdue.edu * the STRESS!!!         ///   *
*                           *                   \\\///030 *
*                           * -Gigahertz!-  Amiga\XX/ 882 *
***********************************************************
         " Not 'da mamma! " - Baby Dinosaur

billsey@agora.UUCP (Bill Seymour) (06/02/91)

In article <1991May29.222408.27731@cunixf.cc.columbia.edu>, Gun control is a firm grip writes:

> Recently I had to add a section of ~20 lines to my mountlist and wanted an 
> easy way of doing it <other than typing it all in> but I didnt know if a
> "Cat" command existed on my WB disk <1.3> and where I could find one. I 
> ended up sending it to my unix account and typing 
> cat <file1> <file2> > <newfile>

	The command you're looking for here is 'Join' under AmigaDOS. The syntax
is 'Join filename filename filename... as filename. You can also append an
file to an existing file with 'Type' and redirection arrows, as in 
'Type >>OldFile NewFile'.

> anyway, I got FFS up and running on my 500 for no real reason other to have
> something else to play with and when I type "info" it says on my FF1: disk
> <its FFS formatted> "876 K free". I thought FFS allowed for MORE memory
> <4%> to be stored on floppies?

	This is correct. the 876K free is higher than the 837K free you have
with an OFS formatted disk. Remmeber that two blocks are reserved for boot
code, one more for the root header and one more for the BAM. Each file also
takes at least one block for the file header.

> **********************************PiRho****************************************
> "All power comes from the barrel of a gun"  //
> sss10@cunixb.cc.columbia.edu            \\ // Amiga makes it possible
>                                          \X/  

  -Bill Seymour     nesbbx!billsey@agora.uucp or nesbbx!billsey@agora.rain.com
*****   American People/Link  Amiga Zone Hardware Specialist   NES*BILL  *****
Bejed, Inc.     NES, Inc.        NAG BBS         NES BBX BBS    Home Sometimes
(503)281-8153   (503)246-9311   (503)656-7393   (503)640-9337   (503) 640-0842