Creating a file in csh
Jaap Akkerhuis
jaap at mcvax.UUCP
Mon Apr 15 15:21:51 AEST 1985
In article <1899 at sdcrdcf.UUCP> faigin at sdcrdcf.UUCP (Daniel Faigin) writes:
> In article <1581 at ukma.UUCP> david at ukma.UUCP (David Herron, NPR Lover) writes:
> >
> > echo -q This creates an empty file >new.file
> >
> >Since, with csh, there is no longer an easy way to create an empty
> >file. (With sh one could type just ">new.file").
> >
>
> Actually, the easiest way to create an empty file in csh is:
> cat < /dev/null > newfile
>
To contribute to this silly discussion, the most portable way
to create an empty file is:
touch "Empty file"
More information about the Comp.unix
mailing list