29 Jul
2007
29 Jul
'07
06:57
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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org