[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Alias for fdformat



You can enclose the alias string in single quotes, then use double quotes to
set off text strings within the alias; kind of like this:

alias fdlin='echo "Enter disk name";read dname;fdformat /dev/fd0H1440;mke2fs
-c -v -L $dname /dev/fd0'

Alex Radsky wrote:

> I'd like to make an alias for formatting a floppy disk for Linux as in
> this example:
>
>            alias fdlin="fdformat /dev/fd0H1440; mke2fs -c -v -L
> "diskname" /dev/fd0"
>
> The Linux format alias works if the 'diskname' is removed from between
> the "   " and the floppy can be used for Linux loads...  it just has no
> name.
>
> The problem is I don't know how to make the alias pause for entering the
> "diskname".  Is there some way to enter the "diskname" either before,
> during, or after running the alias?   I'd prefer to have the name
> entered through the alias, in other words, call the fdlin alias and
> enter the "diskname"
>
> --
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>                 http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-install-list-request redhat com with
>                        "unsubscribe" as the Subject.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]