Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 4th, 2002, 01:55 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Linux / shell grammar

Whenever I try to learn more about Linux/Unix I'm confounded by the dearth of clear information. For example, the syntax of the rm command is shown as such:

Usage: rm [OPTION]... FILE...

Where can I find out the definition of this 'FILE' token?

Reply With Quote
  #2  
Old September 4th, 2002, 02:54 PM
rendy's Avatar
rendy rendy is offline
Moderator
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: London
Posts: 348 rendy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 17 sec
Reputation Power: 7
LOL FILE means the file you want to delete...
and the [OPTIONS] will be described later down in the man pages..

Reply With Quote
  #3  
Old September 9th, 2002, 08:56 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
No kidding it means file. The question was what is the syntax of the token?

I subsequently discovered that it is only a logical token, as apparently the syntax is actually defined by the shell. Isn't that right? That takes a little getting used to, not having used Unix based O/Ss much.

Reply With Quote
  #4  
Old September 9th, 2002, 12:41 PM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
Well,if you want to delete all files in the current directory and have it confirm each file you enter:
rm -i *
Where -i is an Option (a.k.a argument) and the wildcard * the File.You can ofcourse the other wildcards,like ?,too (which are the same on all OS').
File can also be a list of files,for example if I would want to delete the files named readme.txt and help.hlp,I could do it like this:
rm -i readme.txt help.hlp

Reply With Quote
  #5  
Old September 10th, 2002, 08:11 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Thanks for your reply, Tuxie. I guess I kind of overreacted because after I posted I did find the information in the Bash manual. Like I said, it is just a little different to have the O/S itself and then these different shells. I suppose you're right about those metacharacters being pretty ubiquitous, but there's a little more to it than that. In DOS, for instance, you do not have the sophisticated pattern matching features that you do with these Unix shells.

Thanks for your explanation, appreciated.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Linux / shell grammar


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway