Re: [opensuse] alias failure
- From: Dmitry <mittov@xxxxxxxxx>
- Date: Sun, 29 Jul 2007 13:57:09 +0700
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
- Follow-Ups:
- Re: [opensuse] alias failure
- From: James Knott
- Re: [opensuse] alias failure
- From: Randall R Schulz
- Re: [opensuse] alias failure
- References:
- [opensuse] alias failure
- From: Felix Miata
- [opensuse] alias failure
- Prev by Date: Re: [opensuse] opensuse-bugs email limit?
- Next by Date: Re: [opensuse] DNS Error Log - Solved
- Previous by thread: Re: [opensuse] alias failure
- Next by thread: Re: [opensuse] alias failure
- Index(es):
Relevant Pages
|