| General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
12-31-2012, 02:45 AM
|
#1
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Rep:
|
Some things in Windows are nice.
Hi:
As an example, consider the command FC.EXE. You want to compare two text files and don't need to know anything about the program. The output speaks for itself. Now consider diff. You must take a course in order for it to be useful. It is not intended to provide information to humans, only to other programs (patches).
Why? I would like to know. You can get a more human readable output with 'diff --minimal --context=1 --ignore-all-space' but, again, you must take the course first in order to learn this.
Last edited by stf92; 12-31-2012 at 02:59 AM.
|
|
|
|
12-31-2012, 03:18 AM
|
#2
|
|
Senior Member
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,188
|
Quote:
|
Now consider diff. You must take a course in order for it to be useful. It is not intended to provide information to humans, only to other programs (patches).
|
Not true.
It doesn't need to take a 'course' in order to learn something you can completely learn even from the terminal manuals itself.
1. Under windows everything has to be given Ready-To-Use (RTU) since you are "Paying" it for a great price; whereas, under FOSS (Gnu/Linux-BSD-*nix) everything is FREE, both as in Freedom and as in Free-beer, even the freedom to manipulate the scripts to tailor the output according to your taste.
2. Under windows it is an '*.exe' binary (they always hide sources and project a sense of mystery to the unwitting user to encourage TOTAL dependence to the company on matters computing); whereas under FOSS OS's those simple terminal commands are the play things of the user and the normal user (as compared to a lazy one) is expected to learn as the need arises to him, to learn from abundant sources of FREE information through the cyberworld (like this one we have in LQ) and nothing to worry about copyright violation whatever.
3. All that FC.EXE can do is easily attainable by a simple beginner's script of bash commands.
4. What you might call "a course" is not something you formally get into by enrolling in (let alone your employment of metaphor). You have plenty of tutorials free, not for sale, and plenty of fora and help communities that by now have ready answers to your sought out solution, more than what an FC.EXE is all about.
5. If there is ever something in windows to be called as 'nice' is its total support of drivers from OEMs. Other than that, all Microsoft OS (except Windows 95) is a piece of expensive garbage.
Quote:
|
Why? I would like to know.
|
Just like any other questions from ex-Microsoft-buyer/user, the answer is............
/ * IT LIES ON YOUR RESOURCEFULNESS AND YOUR SEARCHING (GOOGLING) ABILITY * /
Hope this helps.
Last edited by malekmustaq; 12-31-2012 at 03:22 AM.
|
|
|
|
12-31-2012, 03:49 AM
|
#3
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Do you agree that diff was thought as a tools to ease patches?
|
|
|
|
12-31-2012, 04:09 AM
|
#4
|
|
Member
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,OpenBSD
Posts: 500
Rep: 
|
Quote:
Originally Posted by stf92
Now consider diff. You must take a course in order for it to be useful. It is not intended to provide information to humans, only to other programs (patches).
|
Disagree: if you have 2 text files called "left" and "right" you need and you can see lines of
< this is in file "left"
> this is in file "right"
and that's sometimes all you need.
|
|
|
|
12-31-2012, 04:15 AM
|
#5
|
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,201
|
Quote:
Originally Posted by stf92
As an example, consider the command FC.EXE. You want to compare two text files and don't need to know anything about the program.
|
As an example, consider the command kompare. You want to compare two text files and don't need to know anything about the program.
|
|
|
|
12-31-2012, 04:31 AM
|
#6
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Quote:
Originally Posted by ruario
As an example, consider the command kompare. You want to compare two text files and don't need to know anything about the program.
|
Alright, but I was speaking about cli programs. After all, FC.EXE is a cli program, no need to start the GUI. But thanks for the info anyway.
|
|
|
|
12-31-2012, 04:47 AM
|
#7
|
|
Member
Registered: Mar 2011
Distribution: Ubuntu 12.04 with KXStudio, MATE & Compiz
Posts: 46
Rep:
|
Quote:
Originally Posted by stf92
Do you agree that diff was thought as a tools to ease patches?
|
Unix came with a fantastic set of text processing tools. These tools, varying from the simple to the complex (and each individual tool can be used as simple or complex) are useful to many, from the novelist, through the technical documentation writer, to the developer. The concepts of the operating system and its utilities have stood the test of, what, over thirty years? The were developed by people with the most incredible minds in the business. No, not in the business: in the whole sphere of computer science. The current state of Linux suggests that those concepts will last a long, long time.
DOS/Windows was never anything more than a shadow, developed under a restrictive commercial initiative; if you want the tools, go buy them. It still rules the desktop, partly because of the entrenched popularity of some of its programs (hey, I still prefer Excel <Blush>). What's nice about it, as stated, is never having to worry when you buy hardware. As a person interested in computer audio, this is a big bugbear for me: many of the manufacturers are simply not interested in my choice of Linux.
diff and sdiff were among the first tools I ever used in my early days. I cannot agree that they need a course to understand, any more than the DOS command line tool do.
Even when stuff does get difficult, some enterprising person will often provide a simple solution, even one with a graphic interface. One of my favourites is fslint. It is amazingly powerful, amazingly fast --- and it is built of the *nix tools of which we speak. It is powered by shell scripts that I do not even begin to understand.
Last edited by Thad E Ginataom; 12-31-2012 at 04:49 AM.
|
|
|
|
12-31-2012, 05:45 AM
|
#8
|
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,201
|
Quote:
Originally Posted by stf92
Alright, but I was speaking about cli programs. After all, FC.EXE is a cli program, no need to start the GUI. But thanks for the info anyway.
|
Sure but there are loads of command line comparison programs on Linux (mcdiff, colordiff, git diff, etc.). What does the output of FC.exe look like? What do you consider a good visual comparison?
How about a coloured word diff with git (the files do not need to be under revision control) e.g.:
Code:
$ git diff --word-diff=color fileone filetwo
I am sure you can find something that does things just as well if not better (this kind of stuff is actually where *nix excels).
Last edited by ruario; 12-31-2012 at 05:47 AM.
|
|
|
|
12-31-2012, 06:11 AM
|
#9
|
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,756
|
Yes, some things in Windows are very nice. Personally, I'm a fanboi of the Off button. Definitely Windows best feature.
|
|
|
|
12-31-2012, 06:15 AM
|
#10
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,232
|
Quote:
Originally Posted by stf92
Why? I would like to know.
|
The answer is actually pretty simple. FC.EXE is a remnant from DOS. DOS was a cheap clone of CP/M, an OS meant to be run on home-computers and office machines by more or less untrained people.
Unix on the other hand was invented with the purpose to be a programming environment in the first place. So people using Unix were usually people that were trained at least a bit in computer sciences and had no problem to read and understand a manual page.
|
|
|
|
12-31-2012, 06:49 AM
|
#11
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
You go, read the man page and tell me if it is of any use. There's the info page. But believe me, you'll still need a course on diff. Basically, what I said it's true. Diff output was not thought to be human readable much machine readable.
On the other hand, I've been programming since my twenties, and consider myself clever enough to deal with such trivial stuff.
|
|
|
|
12-31-2012, 06:51 AM
|
#12
|
|
Member
Registered: Mar 2011
Distribution: Ubuntu 12.04 with KXStudio, MATE & Compiz
Posts: 46
Rep:
|
Quote:
|
So people using Unix were usually people that were trained at least a bit in computer sciences and had no problem to read and understand a manual page.
|
Actually, just being able to read is enough. Worked for me
Quote:
|
You go, read the man page and tell me if it is of any use.
|
Again, it worked for me.
One thing I often wish I still had is one of the physical Unix man-page sets that I originally learnt all this stuff from. It would be a problem that versions and implementations differ, especially over decades, and maybe it is only those decades that make me think they were often better than the current gnu/linux pages. And that permutated index was wonderful!
At the end of the day (or, err... any time...) use the tool that suits you. Nobody can tell you that it was the wrong one.
Last edited by Thad E Ginataom; 12-31-2012 at 06:58 AM.
|
|
|
|
12-31-2012, 07:02 AM
|
#13
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Still missing the main point. It has been thought as a tool to ease patches.
|
|
|
|
12-31-2012, 07:02 AM
|
#14
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,232
|
Quote:
Originally Posted by stf92
You go, read the man page and tell me if it is of any use.
|
It is. It tells me to use the -y option to get a nice side-by-side output that is intended to be human readable.
If you want to see only the differences use it in conjunction with --suppress-common-lines.
Or just use one of the other tools installed in a default Slackware install, like vimdiff or mcdiff.
|
|
|
|
12-31-2012, 07:18 AM
|
#15
|
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,487
Original Poster
Rep:
|
Intentionally left blank by the author.
Last edited by stf92; 12-31-2012 at 07:43 AM.
Reason: No tool for deleting the post.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:53 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|