Re: [opensuse] alias failure





Felix Miata wrote:
On 2007/07/28 14:46 (GMT-0700) joe apparently typed:

Randall R Schulz wrote:

Aliases don't take positional parameters, at least not in BASH (I think
they do in the Csh family, if I recall correctly). They simply expanded
verbatim in front of any arguments you give, so if you invoke it
with "/dev/hda7" as an argument, it's like running this command:

Yes, Randall is right. I took a lazy shortcut and did this instead:

for i in `cat drives`; do tune2fs -l $i | grep volume; done

which of course worked....

Not for me. I put that in a script, and got 'cat: drives: No such file or
directory', and get a syntax error unexpected token from an alias. :-(

Well, you'd have to have a file called "drives" containing the partitions you
want to run against...

in my case it was rather simple-minded:

root@libby:~> cat drives
/dev/hda1
root@libby:~>

Joe
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Verbatim CD-Rs are Junk!!
    ... > For anyone who has burned CD's for Music, or Data, I've found VERBATIM ... > burned discs. ... > surface type) CD's from the Software Companies work the best. ... tried on 3 seperate makes a DVD drives, ...
    (sci.electronics.misc)
  • Re: [SLE] Hard Drives
    ... I've purchased a total of 3 IBM/Hitachi IDE drives over the past several ... It had to be replaced at age 6 weeks, ... The 2nd replacement has been running 24/7 ... Felix Miata *** http://members.ij.net/mrmazda/ ...
    (SuSE)
  • Re: Read Zenith 396-25 MS-DOS hard drive on OS/2?
    ... Felix Miata wrote: ... I do have controller cardfor these drives. ... Your thoughts about that working in something like an OS/2 box as an additional controller? ...
    (comp.os.os2.setup.storage)
  • Re: HELP!! Why Wont My DVD-R Drive Work????
    ... I have BLANK DVD+R Discs made by Sony and Verbatim. ... I have recorded on these drives before, ... but when I put in the BLANK Sony or Verbatim ...
    (comp.sys.mac.hardware.misc)
  • Re: USB Flash Drives-one works one doesnt
    ... >>I have a Verbatim 128 M flash drive that works fine in the USB port. ... > System / Drives and asked for Properties on Drive H:, ... > Drive Label: LEXAR MEDIA ...
    (comp.os.os2.misc)