Creating files

Anthony Messina amessina at messinet.com
Thu Apr 20 20:26:00 UTC 2006


kevin.kempter at dataintellect.com wrote:
> On Thursday 20 April 2006 13:52, Gene Heskett wrote:
>> On Thursday 20 April 2006 14:10, Ali Helmy wrote:
>>> Hey mates,
>>>
>>> Can anyone tell me of a method to create a file (empty, no extension)
>>> from the shell? I usually use nano, vim or emacs and just save and
>>> empty buffer, but is there some-other single line syntax to creating
>>> a file? something like [mkdir DirName] in creating directories
>> Have you never heard of 'touch'?
> 
> Likewise you can re-direct nothing to a filename like this (without the double 
> quotes of course):
> 
> "> newfile"

kevin, that is the most phenomenal thing i've seen since i've started
using linux.  i laughed when i read it -  because it's a great way to do
it!  although i wasn't the one asking the question, that's a great way
to think outside the box.

-- 
Anthony

Website: http://messinet.com
Gallery: http://gallery.messinet.com/main.php?g2_itemId=34

GnuPG Key / Fingerprint:
0xB0014A4E / 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

Registered Linux User #389089 - Get counted!: http://counter.li.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060420/4c55be30/attachment-0001.sig>


More information about the fedora-list mailing list