| PLEX86 | ||
An end to tweaking Approved: yesOn Mon, 11 Jul 2005 09:01:52 -0700, comp.os.spil Installing a Printer in Linux is EASY 1521 On Thu, 03 Mar 2005 10:28:15 -0600, mjt That's a very nice looking distribution especially the background picture. The problem is... Doinganythingrecursive with DOS batch makes my head hurt. ;) It was a very, very sparse language indeed, and perhaps the best that could be said about it is that going from DOS batch to VMS is easier than going from the average Unix shell to VMS. But who needs to move to VMS these days? True. And yes, bash (the default shell under Linux) ismuchbetter than DOS batch. For example: # Mbutt-convert all .gif files in the current directory to .png files. for i in *.gif # Iterate over all files that end in .gif. do n=`basename $i .gif` # Remove the extension. done You can save that to a file and it will be a first-clbutt command from then on. You don't need to care that it's written in shell instead of C or Perl or COBOL. You can write it all out on the command-line, too, if you don't expect you'll ever need to mbutt-convert .gifs to .pngs again. An end to tweaking 1518 In comp.os.linux.advocacy, comp.os.spil wrote on 11 Jul 2005 09:01:52 -0700 One of the more interesting issues to my mind is the unusual "words" one has to learn when running Linux: 'mv', 'cp... (Pardon me if I ramble for a while. I don't know if DOS batch had pipes.) That last command bears some extra commentary: It is actually two programs, one feeding data to the other without needing to create a temporary file on disk. Piping information around is a huge advantage of the Unix command line environment. The names come with time. You can create aliases and hide them behind obfuscation, but in the long run it's better to learn the actual commands. And you can indeed call a shell script anything you want. That is certainly what I am doing, at any rate. Yes, yes, and yes. :) (Some shells are better than others, but a discussion of that inevitably ends in flamewar. I personally like zsh, others swear by ksh, and some think bash is best. A few prefer tcsh, but the tcsh programming language is completely different from what I've shown you.) ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
|
||||
Linux Advocacy from Newsgroups The #1 Usenet Provider on the Internet
|
||||