|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
LOL FILE means the file you want to delete...
and the [OPTIONS] will be described later down in the man pages..
__________________
Online Designer Baby Clothes Store FiftyFifty Web Page, advertising space, with 50% profit share Free web development scripts! Tattoo Blog Free graphical wedding tickers |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Linux / shell grammar |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|