cat problem ???
John Dangler
jdangler at atlantic.net
Thu Dec 21 22:21:03 UTC 2006
On Fri, 2006-12-22 at 00:15 +0200, Dimitri Mallis wrote:
> hi all
>
> i want to create scripts from the command line using cat... but...
>
> dimitri at programming:~/SCRIPTS$ cat penguin.sh
> cat: penguin.sh: No such file or directory
>
> in all the example tutorials i have looked at cat is supposed to
> create the file for you if it does not exist :(
> i have to use gedit each time, which is nice because it has syntax
> highlighting :)
>
> I'd just like to know why cat doesn't create a file if it doesn't
> exist
>
> ( i have looked at man cat & info cat, but i couldn't find my solution
> there)
>
> any thoughts?
> thanks
cat > filename will create a new file
cat >> filename will append to an existing file
>
>
More information about the ubuntu-users
mailing list