From: "Thomas Løcke" <tl@ada-dk.org>
Subject: Re: Properties
Date: Fri, 03 Dec 2010 09:16:04 +0100
Date: 2010-12-03T09:16:04+01:00 [thread overview]
Message-ID: <4cf8a744$0$23761$14726298@news.sunsite.dk> (raw)
In-Reply-To: <70d7bbc6-ec81-4064-ac6a-f38245e1d8b8@r19g2000prm.googlegroups.com>
On 2010-12-03 04:34, Shark8 wrote:
> Perhaps this is true in some degree; there are, however, some rather
> serious design flaws and deficiencies. One deficiency is/was the
> absence of a 'rename' command for files& directories; renaming is a
> VERY common procedure for anyone managing their files; instead of
> 'rename' one is to use 'move' to achieve similar effect... there is
> one HUGE problem with using move [because * expansion is required in
> all *nix shells] you cannot rename groups of files.
>
> ex:
> DOS -> Ren *.p *.pas -- Renaming all .p files to .pas
> *nix -> mv *.p *.pas -- becomes expanded...
> -> mv 1.p 2.p 3.p test.pas -- test.pas from the dir
Or you can use rename:
$ rename .bak .txt *.bak
That renames all your .bak files to .txt.
The rename command has been part of the standard Linux tools for many
years. It's also readily available for FreeBSD and I suspect other
*BSD's as well. You're not forced to use mv to rename files.
> Shell-scripting is loads of fun* too. {*And by 'fun' I mean
> irritating, irregular, and surprisingly non-portable between different
> 'flavors'.} The following two-line script shows the POWER of *nix
> shell-scripts:
> #/bin/sh
> $0&
A /bin/sh script is perfectly portable, if you intend to use it with the
Bourne Shell.
It's of course less portable if you try to use it with the C shell.
> The shell-scripting is one reason; why in the name of Chaos would
> someone want to use them [CSH or KSH or BASH]? In terms of power/
> flexibility a LISP-based shell would be TONS more useful/managable...
> though, admitidly it would require that one thinks in recursion.
If you don't like BASH, csh, zsh or Korn, then why not try
something like BUSH:
http://www.pegasoft.ca/bush.html
It has a very Ada-like approach to shell scripting.
> The lack of types on files is another; old Macs had file-types down,
> but *nix has nothing like that (nor does it have even the capability
> for it, kernel-wise). {Windows has a [barely] workable file-extension/
> association scheme -- analogous to an Ada map of (Key =>
> File_Extention, Element => Application_Info).}
The "file" command is your friend.
It just works, and it doesn't depend on some shaky dot extension scheme.
Simple file->program association is handled well in both KDE and Gnome.
I suspect other desktop environments have similar systems in place. I
don't think this is a job for the kernel.
> Lack of file versioning.* {Unix, Mac, and Win => Lose. VMS => Win.}
> *File-versioning could save the arses of 90% of the lost/corrupted
> file problems that I've encountered with MS Word users. i.e. the "my
> kid selected the first twelve pages of my document and replaced it
> with 'gsosdpofij' and I saved over it!" instantly becomes recoverable.
Hardly the fault of *nix, but of the file system you're using.
Or you could just use a VCS to track the directories and files that
needs versioning.
> One single hyphenated-word: man-pages.
> The old DOS hypertext help was superior to man=pages, windows .HLP
> file help was/is superior to man-pages, the OpenVMS help-system is
> FAR, FAR more usable than man-pages.
man rename
man file
What's wrong with that? It could not be any easier.
Do you want to search for a specific word?
man -K word
or a phrase?
man -K "my phrase"
Or using apropos:
man -k "determine file type"
and you get:
file [] (1) - determine file type
It's easy, flexible and it works.
> Error codes? In *nix programs may or may not use them... (some
> programs return 0/success when errors were encountered) which makes
> them less than useless.
Hardly the fault of *nix, just as the abundance of horrible software
for Windows cannot be blamed on Windows itself.
--
Regards,
Thomas L�cke
Email: tl at ada-dk.org
Web: http:ada-dk.org
IRC nick: ThomasLocke
next prev parent reply other threads:[~2010-12-03 8:16 UTC|newest]
Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-28 3:21 Properties Shark8
2010-11-28 8:15 ` Properties Dmitry A. Kazakov
2010-11-28 19:43 ` Properties Shark8
2010-11-29 8:34 ` Properties Dmitry A. Kazakov
2010-12-01 18:15 ` Properties Shark8
2010-11-28 12:37 ` Properties Georg Bauhaus
2010-11-28 21:22 ` Properties Shark8
2010-11-29 16:54 ` Properties Georg Bauhaus
2010-12-01 19:52 ` Properties Martin Krischik
2010-12-01 23:24 ` Properties Georg Bauhaus
2010-12-05 16:15 ` (placepo) Properties Martin Krischik
2010-12-06 23:24 ` Shark8
2010-12-01 23:31 ` Properties Georg Bauhaus
2010-11-30 1:49 ` Properties Randy Brukardt
2010-11-30 16:58 ` Properties Charmed Snark
2010-11-30 17:22 ` Properties Dmitry A. Kazakov
2010-11-30 20:27 ` Properties Warren
2010-12-01 8:39 ` Properties Dmitry A. Kazakov
2010-12-01 15:21 ` Properties Warren
2010-12-01 15:59 ` Properties Dmitry A. Kazakov
2010-12-01 16:20 ` Properties Warren
2010-12-01 18:22 ` Properties Dmitry A. Kazakov
2010-12-01 19:36 ` Properties Shark8
2010-12-01 21:13 ` Properties Dmitry A. Kazakov
2010-12-01 21:35 ` Properties Maciej Sobczak
2010-12-01 21:45 ` Properties Dmitry A. Kazakov
2010-12-02 9:57 ` Properties Maciej Sobczak
2010-12-02 10:26 ` Properties Dmitry A. Kazakov
2010-12-02 15:25 ` Properties Maciej Sobczak
2010-12-02 15:46 ` Properties Dmitry A. Kazakov
2010-12-02 21:11 ` Properties Maciej Sobczak
2010-12-02 22:19 ` Properties Dmitry A. Kazakov
2010-12-03 4:43 ` Properties Randy Brukardt
2010-12-03 13:53 ` Properties Maciej Sobczak
2010-12-03 21:32 ` Properties Randy Brukardt
2010-12-04 22:13 ` Properties Maciej Sobczak
2010-12-06 23:30 ` Properties Shark8
2010-12-06 23:33 ` Properties Randy Brukardt
2010-12-04 17:43 ` Properties Simon Wright
2010-12-04 20:48 ` Properties Dmitry A. Kazakov
2010-12-04 22:27 ` Properties Simon Wright
2010-12-04 22:31 ` Properties Vinzent Hoefler
2010-12-03 4:24 ` Properties Randy Brukardt
2010-12-03 5:00 ` Properties Shark8
2010-12-03 21:10 ` Properties Randy Brukardt
2010-12-03 23:34 ` Properties Jeffrey Carter
2010-12-06 6:02 ` Properties Brad Moore
2010-12-06 23:25 ` Properties Shark8
2010-12-01 19:48 ` Properties Randy Brukardt
2010-12-01 21:10 ` Properties Warren
2010-12-02 0:03 ` Properties Shark8
2010-12-02 16:45 ` Properties Warren
2010-12-02 17:32 ` Properties Dmitry A. Kazakov
2010-12-02 20:45 ` Properties Warren
2010-12-02 21:17 ` Properties Adam Beneschan
2010-12-02 21:40 ` Properties Warren
2010-12-03 3:34 ` Properties Shark8
2010-12-03 8:16 ` Thomas Løcke [this message]
2010-12-02 20:52 ` Properties Pascal Obry
2010-12-02 19:46 ` Properties Adam Beneschan
2010-12-02 20:38 ` Properties Warren
2010-12-02 21:39 ` Properties Jeffrey Carter
2010-12-02 21:55 ` Properties Warren
2010-12-03 9:33 ` Properties Anonymous
2010-12-03 3:47 ` Properties Shark8
2010-12-03 0:09 ` Properties Robert A Duff
2010-12-03 15:49 ` Properties Warren
2010-12-03 20:07 ` Properties Shark8
2010-12-06 21:01 ` Properties Warren
2010-12-06 23:22 ` Properties Shark8
2010-12-07 14:37 ` Properties Warren
2010-12-08 21:13 ` Properties Simon Wright
2010-12-09 1:21 ` Properties Shark8
2010-12-06 23:43 ` Properties Randy Brukardt
2010-12-07 0:56 ` Properties Jeffrey Carter
2010-12-07 11:23 ` Properties Maciej Sobczak
2010-12-07 11:51 ` Properties Georg Bauhaus
2010-12-07 15:35 ` Properties Maciej Sobczak
2010-12-07 17:02 ` Properties Georg Bauhaus
2010-12-07 14:39 ` Properties Warren
2010-12-03 15:40 ` Properties Warren
2010-12-03 19:56 ` Properties Shark8
2010-12-03 20:12 ` Properties Warren
2010-12-03 5:53 ` Properties Shark8
2010-12-03 9:05 ` Properties Dmitry A. Kazakov
2010-12-03 19:52 ` Properties Shark8
2010-12-03 21:14 ` Properties Randy Brukardt
2010-12-04 5:35 ` Properties Shark8
2010-12-04 14:23 ` Properties Peter C. Chapin
2010-12-04 18:53 ` Properties Shark8
2010-12-13 15:10 ` Properties Brian Drummond
2010-12-03 22:38 ` Properties Dmitry A. Kazakov
2010-12-04 3:12 ` Properties Shark8
2010-12-04 13:19 ` Properties Georg Bauhaus
-- strict thread matches above, loose matches on Subject: below --
2010-12-04 19:53 Properties Shark8
2010-12-04 23:27 ` Properties Thomas Løcke
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox