LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 10-14-2003, 03:18 AM   #76
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31

lol.....this one is cool ......i scrolled quickly thru the replies....especially frm that frustrated person...looking to equate linux with windows....

I would like to say that....in fact...I am glad, Linux Tarvolds..took the time to write the linux kernel....otherwise, I would have continued to bear the brunt of the 'blue screens of death!!!'.....and frequent Illegal Operation messages that come as a bonus with every Windows OS....lol....

Of course, windows is simple, but Linux and UNIX give me a chance to feel that yes, computing is a thrilling and enjoyable experience....I enjoy every single minute of working on my Red Hat 9....and I am sure, all those guys there with the Slacks, Mandy's, Gentoos and Suse's....would agree to...

Linux has given me a new life...as far as my career goes...

As of today, Linux has been simplified so much that the migration time from Windows to Linux has been heavily reduced....thanks to the hard work of the open source community.....

In fact, the truth is, people who r lazy enough....should not try their hands at linux...because linux was never meant for the normal user....who wants to be shielded from all the complications....who does not have the urge to know..."Why it happens" and "How does it happen"....

I hope the linux community will keep in mind that we do not want to convert linux into a windows....What we must aim is - to change our attitudes....to change the way we work with our computer....

Few years back, we learnt everything Windows had to offer ...now people dont wanna give that extra bit...to shift to linux.....they want Linux to become a La windows!.....

Linux is cool the way it is today....I feel, the focus should be on stability....and more power....


For the others...who dont want to think too much about what they are doing.....'Billy boy' is around and at work (trying to complicate Windows further and further!!!) for them too...lol

regards,

amit
 
Old 10-14-2003, 04:51 AM   #77
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Quote:
Originally posted by wuck
One word: mv

$ mv GPO*.h CX*.h

You could've done a seach on some online man pages website or an apropos about 'moving files'
type "echo GPO*.h CX*.h", and you'll see why this doesn't work. This file expansion of the linux shell is powerfull, but you need to be aware of it.

The "ren" command of MS-DOS has a "broken grammar". If the command does different things if you provide a different set of arguments. This inflexibility gives you a lot of problems if you want to do real difficult things. (the "ren *.htm *.html" kind of thing is powerful though, but has major drawbacks)

Here is a rename example.
Code:
find . -iname "*.htm" -maxdepth 1 | while
  read filename
do
  mv "$filename" "`echo $filename | sed -e 's/\.htm$/.html/' `"
done

# or:
for filename in *.htm
do
# ....
Note that I use quotes to deal with possible spaces in the $filename argument

I want to do something -simple- like selecting the second word in every file matching a pattern, return all zip files containing a certain file name, or replace text in a file (using a regular expression), but I get lost here in MS-DOS. You can only use it for simple file operations.

Even a simple "grep pattern <files>" is a trival thing in Windows 2000, with the strange FINDSTR syntax. (I've tried to use this command a lot, before I've even seen Linux)


..just trying to show you the other side of the story

Last edited by yapp; 10-14-2003 at 04:54 AM.
 
Old 10-14-2003, 01:01 PM   #78
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
This has been told some 3-4 times now,in this thread..Infact the entire man page of rename has been posted in this thread.
Unfortunately, the man page is not all that clear on its description of rename. I needed to experiment to see for myself how rename worked. Then, I posted my reply, using as simple a model as I could come up with to get the message across. None of this is a problem for me. However, I am computer literate and know how to get around so that I can experiment. I also know people who would get lost doing this. So, why not go the extra mile for them? Granted, the person who started this thread was rude. However, going the extra mile to explain the solution civilly instead of the flaming that was posted would make that person look even more ridiculous. It would also help, and not just on this thread, if postings that focus on solutions could somehow come up first.
 
Old 10-14-2003, 01:04 PM   #79
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
I just wanted to tell you that the information you had posted has been well discussed before.In addition to that,the man page itself was pasted.And this guy(who asked it) said that it did work for him.Nobody reported any confusion.That is why...........
 
Old 10-14-2003, 01:43 PM   #80
oopicmaster
Member
 
Registered: Sep 2003
Posts: 154

Original Poster
Rep: Reputation: 30
The man pages for mv and rename are poor at best. If you look at the man page for mv, it states that mv is for moving or renaming files. Which it isnt.

The man page for rename, is cryptic as well, with little information, and very poor examples of usage.

Quote:
Granted, the person who started this thread was rude
Um... .... hmmmm..... B.S. ! If you read this thread carefully you will see that it is those who replied to my original post who acted like 2 year olds. Instead of giving correct, useful information (which they OBVIOUSLY didnt have anyway) they started name calling like children.
 
Old 10-14-2003, 01:55 PM   #81
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
Just an interesting note:

C:\> move GPO*.h CX*.h
The filename, directory name, or volume label syntax is incorrect.

C:\>

That's in windows 2000...
 
Old 10-14-2003, 04:10 PM   #82
codec
Member
 
Registered: Sep 2003
Location: mad.es.eu
Distribution: ubuntu 5.04 knoppix Slack91/10 freebsd51 vector4 redhat9
Posts: 304

Rep: Reputation: 30
it's true that the man page of mv isn't great.

but oopicmaster, you did something wrong:

1) Pro-windows comment in linux comment for a insignificate thing

2) It's DOS, not windows!!!!!

btw, batch rename is troublesome, specially there are lot's of files with similar names. When I was in windows, I use something called Flexible Renamer to do that kind of job.
 
Old 10-14-2003, 04:19 PM   #83
oopicmaster
Member
 
Registered: Sep 2003
Posts: 154

Original Poster
Rep: Reputation: 30
Quote:
2) It's DOS, not windows!!!!!
Ive got an issue with this one.


Its not DOS, its Windows!!!

All things in Windows go through the Win32 APi, so it only LOOKS like a DOS prompt! Ha, ha....
 
Old 10-14-2003, 04:22 PM   #84
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Quote:
Originally posted by fang0654
Just an interesting note:

C:\> move GPO*.h CX*.h
The filename, directory name, or volume label syntax is incorrect.

C:\>

That's in windows 2000...
Now thats funny.
 
Old 10-14-2003, 04:31 PM   #85
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
__OOPS__

Last edited by fatgod; 10-14-2003 at 04:33 PM.
 
Old 10-14-2003, 04:32 PM   #86
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Quote:
Originally posted by oopicmaster
All things in Windows go through the Win32 APi, so it only LOOKS like a DOS prompt! Ha, ha....
Nope, they just make it look like it's all windows. I can still recall WIN95 spitting up win3.11 errors mentioning DOS by name. Win95 was not a rewritten OS, it's all based on DOS.

"If you can't make it good, make it look good" Bill Gates

According to MS OS/2 was to be the champion OS, (Hey it was!) but WinNT4,5,5.5 (read 2k and XP) are supposed to be... Win9x was just a stop gap to keep home users happy (and cheap arse businesses unhappy - and their tech staff)

 
Old 10-14-2003, 04:45 PM   #87
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
I thought it was windows with a mere chopped up dos shell at this stage.
 
Old 10-14-2003, 08:09 PM   #88
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by oopicmaster
The man pages for mv and rename are poor at best. If you look at the man page for mv, it states that mv is for moving or renaming files. Which it isnt.

The man page for rename, is cryptic as well, with little information, and very poor examples of usage.



Um... .... hmmmm..... B.S. ! If you read this thread carefully you will see that it is those who replied to my original post who acted like 2 year olds. Instead of giving correct, useful information (which they OBVIOUSLY didnt have anyway) they started name calling like children.
part of your original post:
Quote:
Because Ive spent the last half hour trying to do something in Linux that would be SIMPLE to do in Windows.
you posted like a schmuck and you got treated like a schmuck. if you want to ask a question, ask. leave your rants at home. especially when it's obvious you have no clue about dos commands. linux is stupid because you have to learn more commands with rmdir? dos has rmdir and it behaves like rmdir in *nix. as a matter of fact with dos, with your argument, you would actually need to know one more command than linux.

dos: rmdir, del, deltree
linux: rmdir, rm.

rm can do the same thing as del and deltree (with the -r flag).

here, have a ball with your precious dos commands.
http://www.computerhope.com/msdos.htm#02
 
Old 10-14-2003, 08:11 PM   #89
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by fang0654
Just an interesting note:

C:\> move GPO*.h CX*.h
The filename, directory name, or volume label syntax is incorrect.

C:\>

That's in windows 2000...
Quote:
Originally posted by fatgod
Now thats funny.
ha ha.... and mv is broken....
 
Old 10-15-2003, 09:08 AM   #90
oopicmaster
Member
 
Registered: Sep 2003
Posts: 154

Original Poster
Rep: Reputation: 30
Quote:
you posted like a schmuck and you got treated like a schmuck.
Well I may be "Shmuck Like", however, I do find it to be rather "Putz Like" to be offended because someone makes a comment about an OS... Ha, ha, ha.... whew... I mean REALLY! Do you get a commision everytime a Linux Distribution is sold or something?...... No?...... Bwaaaaa, ha, ha, snort.... So you carry that torch just for the heck of it then? Bwaaaaaaaaaa, ha, ha, ha...

Windows is by FAR The best overall OS available today, and for the typical user Microsoft is the best company around. Period. Its ease of use is beyond anything else on the market. Over the years Microsofts strategy has been a boon to the industry. They moved us into windowed computing and at the same time stayed loyal to customers who had previous versions of their OS. No other company stepped up to the plate to do this, not Sun, not Apple, not HP... noone. Heck the only reason Linux evolved is because Unix developers failed to provide the public with a cheap version of their OS! If it werent for Microsoft, we'd still be in the dark ages of computing. Windows is still the easiest OS to install and learn as well, it has brought computing to the common man, and redistributed quite a bit of the power in the US. There would have been no Internet boom without Microsoft.


YES!

C:> move GPO*.h CX*.h

Works the EXACT SAME WAY AS:

C:> move file1.h file2.h

Simple. clear, concise, and to the point. Cant beat it with a stick!
 
  


Closed 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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
March of the Penguins movie - Thumbs up! J.W. General 2 07-10-2005 07:04 PM
Thumbs Up To Linux! redfedora88 LinuxQuestions.org Member Success Stories 3 03-22-2005 07:35 PM
Thumbs up for Suse 9.1 Wolfgang67 Linux - Distributions 18 08-05-2004 08:30 PM
2 thumbs up for linux. xode LinuxQuestions.org Member Success Stories 2 11-23-2003 05:57 PM
winex - 5 thumbs up! kazuni LinuxQuestions.org Member Success Stories 8 06-05-2003 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration