Re: [opensuse] alias failure



On Sunday 29 July 2007 03:32, Felix Miata wrote:
FM I'm having no luck figuring out why
FM alias Vol='tune2fs -l $1 | grep volume'
FM
FM causes a usage message when 'Vol /dev/hda7' is run. Can anyone explain
what FM I'm doing wrong, or provide a better method to discover a volume
label?

I remember that $1 - is the first argument in bash scripts, but I don't
remember how $1 works in command line. And I think it will be a good idea to
try this:

===script======
#!/bin/bash
tune2fs -l $1 |
grep volume
===end script===

--
WBR, Dmitry.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: about shell pgms
    ... IN MY PROJECT I HAVE TO: Create a UNIX shell script named user_menu ... Therefore valid entriesof this command by the user are: ... If either is incorrect, display the generic ... display the generic usage message. ...
    (comp.unix.programmer)
  • Re: newby - installing openssh 3.6.1p2 on solaris 8
    ... >> have problems with the key generation using his suggestion. ... > On my machine it says I have to use -t, and gives a usage message with ... I got a "PRNG is not seeded" error message when executing this command: ...
    (comp.security.ssh)
  • Re: [opensuse] alias failure
    ... Felix Miata wrote: ... causes a usage message when 'Vol /dev/hda7' is run. ... or provide a better method to discover a volume label? ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: Random thoughts. (Was Stuff)
    ... p.s. i am a little annoyed that the usage message doesn't reflect how ... command line should be able to figure it out. ... condrestart option will confuse some people. ...
    (Fedora)
  • Re: [SLE] Low RAM & 9.1 (Re XFCE)
    ... On Thursday 30 September 2004 04:21, Felix Miata wrote: ... > Leendert Meyer wrote: ... Maybe the package containing that command is missing? ...
    (SuSE)