Re: Creating files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20Apr2006 15:26, Anthony Messina <amessina@xxxxxxxxxxxx> wrote:
| kevin.kempter@xxxxxxxxxxxxxxxxx wrote:
| > 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.

Heh. We used to operate tape drives similarly, disparaging the use of
the mt command:

	< /dev/st0	# rewind
	< /dev/nst0	# fast forward one file

As mentioned:

	> filename	# truncate file, creating if necessary
	>> filename	# create file if necessary, but to not destroy data

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Fear not the evil men do in the name of evil, but heaven protect us from the
evil men do in the name of good.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux