Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Fact or Fiction? Top 8 Linux Myths Debunked
Yahoo ^ | Thu Sep 9, 2:18 pm ET | Katherine Noyes Katherine Noyes

Posted on 09/11/2010 9:24:44 AM PDT by Ernest_at_the_Beach

click here to read article


Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-77 last
To: dayglored

sed


61 posted on 09/12/2010 3:03:32 PM PDT by Still Thinking (Freedom is NOT a loophole!)
[ Post Reply | Private Reply | To 51 | View Replies]

To: dayglored
Well, it's stretching the definition of "edit", but as long as the file is less than about 15 lines (assuming a 24x80 console), and /bin/cat is available:

No, don't assume /bin/cat is available, but that's one way to do it.

cat can be done by:

#!/bin/sh

while read line; do
  echo "$line"
done

which of course doesn't always work in "modern" systems because of how the semantics of echo have been perverted. In that case, you'll want `print -'.

The same technique can be extended to avoid retyping the whole file. For example to replace all lines matching "bar" with "FRee Republic" you would do:

while read line; do
  if [ x"$line" = xbar ]; then
    echo FRee Republic
  else
    echo "$line"
  fi
done < file > file.new
mv file file.bak; mv file.new file

It may seem trivial now, but this was the first time anything close to this had ever been done in an OS before. Stephen Bourne created magic.

Another handy cat hint, if you're using X11 and need to copy/paste some text while removing formatting (say you're copying formatted text from a browser into a plaintext file):

Yes, very clever. I do that too, except with ed, then typing `a'. Usually the time I'm trying to cut & paste into something that doesn't quite want to take it is a web browser with a stupid text field that gets wiped out if something else is wrong on the page and that way I can save the text to a file if I have to.

If I need to wipe out formatting, it's usually easier to paste it into a handy XEmacs *scratch* buffer. That is, of course, a matter of taste. :-)

62 posted on 09/12/2010 3:10:15 PM PDT by altair (Violence is the last refuge of the incompetent - Salvor Hardin)
[ Post Reply | Private Reply | To 57 | View Replies]

To: dayglored
I'd love to know how; willin' to share?

You were right. Yes, you do need mv. I was typing in the answer, see the post above.

63 posted on 09/12/2010 3:14:54 PM PDT by altair (Violence is the last refuge of the incompetent - Salvor Hardin)
[ Post Reply | Private Reply | To 58 | View Replies]

To: dayglored
Alas, although I could have (there was a nearby 3B5 that had full sources), I was not permitted to view them, because the company I was working for was developing a "Unix-like" industrial process control system from scratch and we had to have plausible deniability that we'd ever viewed the actual Unix sources.

I did Unix System V/386 device drivers around 1990, so I don't have any plausible deniability and have been careful to stay away from "standard" Unix utilities since then.

64 posted on 09/12/2010 3:19:33 PM PDT by altair (Violence is the last refuge of the incompetent - Salvor Hardin)
[ Post Reply | Private Reply | To 59 | View Replies]

To: Ernest_at_the_Beach

The installation problems associated with Linux show the how and why that it isn’t a commercial product, nor can it be.


65 posted on 09/12/2010 3:28:45 PM PDT by SunkenCiv (Democratic Underground... matters are worse, as their latest fund drive has come up short...)
[ Post Reply | Private Reply | To 32 | View Replies]

To: SunkenCiv

Installation problems? My PCLinuxOS distro is just about the most painless install out there. Easier than Ubuntu, there’s no difficulties at all. 20 minutes and it’s done, and you’re up and running.


66 posted on 09/14/2010 5:59:37 PM PDT by Big Giant Head (Two years no AV, no viruses, computer runs great!)
[ Post Reply | Private Reply | To 65 | View Replies]

To: raybbr

>For those, like me, who started their understanding of OS’s using DOS commands in Windows 3.1 learning the entire new commands for Linux is daunting. I suppose if I immersed myself in it I would catch on but I just don’t have the time.

“The novice Unix user is always surprised by Unix’s choice of command
names. No amount of training on DOS or the Mac prepares one for the
majestic beauty of cryptic two-letter command names such as cp, rm, and
ls.” - Unix-Hater’s Handbook

>I have a box that runs Linux Ubuntu that I use in the basement. It runs great. Adding things to it just takes too much time.
>
>I heartily endorse Linux distros though. They seem to be pretty stable and run without any real hassle.

I dislike *nix for many, many reasons; it’s [IMO] poorly designed [I believe it to be a direct result of being designed in-parallel w/ C].
Personally I’d rather use a well-designed OS using a read high-level language like Ada rather than ones built with the pretend high-level languages C & C++.


67 posted on 09/21/2010 6:14:20 PM PDT by OneWingedShark (Q: Why am I here? A: To do Justly, to love mercy, and to walk humbly with my God.)
[ Post Reply | Private Reply | To 4 | View Replies]

To: SwedishConservative

>2: Microsoft Excel. Simply put, Excel and Word are head and sholders above the competition. There are alternatives, sure (open office, google docs etc) but none that really measure up - especially in the spreadsheet market. As long as MS retains that competitive edge, Windows will be the preferred platform on business computers.

I *HATE* Excel with the hatred of a million burning suns. Management types tend to be idiots who want to use spreadsheets ALL THE TIME... especially when the intended use of the information therein would be *FAR* better handled by a database.

I merely strongly dislike Word; it’s truly a horrible program... especially when you delete some text/paragraph and it alters formatting [usually in awkward ways]. If proper formatting is a requirement for your document, such as legal or scientific works, I’d strongly recommend WordPerfect above Word simply because of the superior manner it handles formatting. (I still use WP11 in preference to MS Word.)


68 posted on 09/21/2010 6:23:34 PM PDT by OneWingedShark (Q: Why am I here? A: To do Justly, to love mercy, and to walk humbly with my God.)
[ Post Reply | Private Reply | To 15 | View Replies]

To: eclecticEel

>#5 is Linux’s biggest shortcoming. The Linux community can pump up OpenOffice as much as they want - but it will never replace MS Office. Microsoft will also never release a Linux version, for obvious reasons.

The biggest problem with Open-Office [IMO] is that it is blindly following/cloning MS Office.


69 posted on 09/21/2010 6:28:17 PM PDT by OneWingedShark (Q: Why am I here? A: To do Justly, to love mercy, and to walk humbly with my God.)
[ Post Reply | Private Reply | To 39 | View Replies]

To: altair

Didn’t you and I have a chat about Unix/OSes/design a while back?


70 posted on 09/21/2010 6:32:18 PM PDT by OneWingedShark (Q: Why am I here? A: To do Justly, to love mercy, and to walk humbly with my God.)
[ Post Reply | Private Reply | To 47 | View Replies]

To: dayglored

>That box changed my life. I had started programming in C a few years before, but the Unix environment and I immediately got along like old buddies, and it’s still my favorite OS.

Hm, as an old-hand at C I’m sure you’ve got a lot to say on the various shortcomings/pitfalls therein.


71 posted on 09/21/2010 6:34:15 PM PDT by OneWingedShark (Q: Why am I here? A: To do Justly, to love mercy, and to walk humbly with my God.)
[ Post Reply | Private Reply | To 50 | View Replies]

To: OneWingedShark
> Hm, as an old-hand at C I’m sure you’ve got a lot to say on the various shortcomings/pitfalls therein.

Shortcomings and pitfalls of C? Those have been listed and recited and documented and argued for 30+ years. I needn't repeat them yet again.

I prefer simple tools that do exactly what I want, to complex tools that make selected tasks trivial and other tasks impossible. I prefer driving a manual transmission car, for example.

C is still the language of choice for much of the non-application programs written today. System stuff, drivers, utilities, embedded devices, controllers, etc. You know, the stuff that actually DOES something beyond painting pretty pictures on a user's screen. :)

The two main reasons (IMO) that anybody uses anything else are:

  1. In the hands of a less-than-skilled programmer, C will happily do what they tell it to do, which is most often erroneous. It's not for the lazy or inept. There are much safer languages, Nanny-May-I style, for those programmers.

  2. String and database processing in C can be very tiring and frustrating, and a lot of business software processes strings and databases. There are special-purpose languages that excel at those tasks.

72 posted on 09/21/2010 7:30:38 PM PDT by dayglored (Listen, strange women lying in ponds distributing swords is no basis for a system of government!)
[ Post Reply | Private Reply | To 71 | View Replies]

To: dayglored

> The two main reasons (IMO) that anybody uses anything else are:
> 1. In the hands of a less-than-skilled programmer, C will happily do what they tell it to do, which is most often erroneous. It’s not for the lazy or inept.

That’s odd; IMO the C/Linux mentality encourages laziness — In my personal experience I’ve often come across the response “why don’t you download the/a unix/linux source” when my peers [I’m a CS major; one final class left] hear that I’d like to make an OS.

There’s also the “an example online,” cut-and-paste, and then tailor it to your program’s needs crowd; but I’m hesitant to link that with the C/Unix mindset as it seems to be more language agnostic & it’s also possible that the shift in a lot of the curriculum to Java influenced/germinated that a bit more than C.

> There are much safer languages, Nanny-May-I style, for those programmers.

Ah, like Ada.
I actually REALLY like the amount of things (checks & optimizations) Ada compilers can do at COMPILE-TIME; some of which is quite impressive.

> 2. String and database processing in C can be very tiring and frustrating, and a lot of business software processes strings and databases. There are special-purpose languages that excel at those tasks.

Strings and databases processing can be tiring/frustrating w/o C; I think that those two areas are inherently more... picky/difficult.
For strings, some of it is the native language [English in our case] where the different forms and exceptions all have to be handled: pluralities is a perfectly good example. Goose —> Geese; but Moose -/-> Meese. Mouse —> Mice; but House -/-> Hise. Matrix —> Matrices; does Dominatrix —> Dominatrices?

Databases are similar in that the storage-forms in the database might not be the best forms for the types of manipulations you intend to do.... and the multiple valid formats for the same data-fields might be structurally different (yet presenting the same information); consider street addresses, especially international ones.

>C is still the language of choice for much of the non-application programs written today. System stuff, drivers, utilities, embedded devices, controllers, etc. You know, the stuff that actually DOES something beyond painting pretty pictures on a user’s screen. :)

Honestly I think that Ada would be a better choice for embedded/system stuff; its development *was* first commissioned by the DOD specifically for handling the unique/”non-standard” hardware of the various weapon-systems, like missile-launch control — and especially considering that the spec/implementation separation is much more ‘definite’ than C; I mean how many times have you had to work around header-files exposing some implementation detail in C?


73 posted on 09/21/2010 8:20:35 PM PDT by OneWingedShark (Q: Why am I here? A: To do Justly, to love mercy, and to walk humbly with my God.)
[ Post Reply | Private Reply | To 72 | View Replies]

To: OneWingedShark
Quick reply, it's 2:20 AM here and I have to be up at 7...

> Honestly I think that Ada would be a better choice for embedded/system stuff; its development *was* first commissioned by the DOD specifically for handling the unique/”non-standard” hardware of the various weapon-systems, like missile-launch control...

Funny you mention that. In the early 80's I was designing an embedded controller for geostationary comm-sat attitude control systems, and I was strongly encouraged at that time to look at Ada for the implementation (which I did, of course). But it wasn't a requirement at the time, since I was first doing prototype proof-of-concept design work, so I could choose my own poison (I chose C).

I agree that Ada has some very strong advantages for that sort of work.

74 posted on 09/21/2010 11:28:55 PM PDT by dayglored (Listen, strange women lying in ponds distributing swords is no basis for a system of government!)
[ Post Reply | Private Reply | To 73 | View Replies]

To: eclecticEel

Open Office has come a long way... its been ported to Windows and MacOSX. Microsoft does make a version for MacOSX that is generally regarded as superior to its Windows version. But open source is good an OO will do 90% of what Microsoft’s expensive office suite does. There really is much good to say about free in these tight times.


75 posted on 12/05/2010 5:12:36 PM PST by goldstategop (In Memory Of A Dearly Beloved Friend Who Lives In My Heart Forever)
[ Post Reply | Private Reply | To 39 | View Replies]

To: Still Thinking

Microsoft has Open Office converters so the issue of formatting is bunk. And Open Office can read MS Office files. We’re getting close to an interoperability standard so it doesn’t matter what office suite you run.


76 posted on 12/05/2010 5:15:30 PM PST by goldstategop (In Memory Of A Dearly Beloved Friend Who Lives In My Heart Forever)
[ Post Reply | Private Reply | To 60 | View Replies]

To: goldstategop

I think you’re disputing the guy I was responding to.


77 posted on 12/05/2010 5:40:29 PM PST by Still Thinking (Freedom is NOT a loophole!)
[ Post Reply | Private Reply | To 76 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-77 last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson