Thanks, but it is misunderstood,
the input has to be EXACT match of one of options e.g.
centos-5.5-i386 windows-2003r2-x64 freebsd-6.1-i386
so, centos/freebsd/windows are not valid input
I am looking for a shell one-liner,any command, to achieve this, grep is just an example
I could compare the length of the input string and length of the string being search/replaced, but not an elegant solution.
I need help to know how to create a script that takes string options and not only 1 charecter.
I wanted to make a script that takes 'string' options eg. hscript.sh -product XXX -version XXX
I know that I can make a script that takes "1 Charecter " options eg. hscript.sh -m XXX -l XXX -s XXX ,... (2 Replies)
I am installing apache on freebsd and the screen comes up with make options. Here I would like to deselect DAV and DAV_FS. How can this be done on the command line in order to achieve a silent install?
This is what I have currently, but the installation script still enters the menu with the make... (2 Replies)
I mam trying to install wget from the command line without user intervention. So I devised something as follows:
cd /usr/ports/ftp/wget
make -DWITHOUT_GNUTLS=yes -DWITHOUT_IPV6=no -DWITHOUT_NLS=no -DWITHOUT_OPENSSL=no
However, this will still get me into the screen where user input is required.... (4 Replies)
Hi,
In Perl, how can we define a variable make it read the value from the standard input? Meaning, how can have the user type in the value that will be assigned to the variable?
Thanks, (2 Replies)
Howdy folks,
How do i make the input start with a letter and certain num of numbers and if anything else is entered it should display error
for ex; a123455 is good ( exactly 7 characters)
and
ex: sio234234 is not good
ex: b233 is not good..
ex: jlasjdlfks is not good
... (2 Replies)
Hi Team,
i want to input two password for single node like pass1/pass2 one of the pass1 is working some node and pass2 is working for some nodes .
For nodes having pass1 i have to run diffrent script and
for nodess having pass2 i have to run diffrent script
Sooo
how can put two pass... (1 Reply)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
i am having file like this
#!/bin/bash
read -p 'Username: ' uservar
match='<color="red" />'
text='this is only a test
so please be patient
<color="red" />'
echo "$text" | sed "s/$match/&$uservar\g"
so desireble output what i want is if user type MARIA
this is only a test
so please... (13 Replies)
Discussion started by: tomislav91
13 Replies
LEARN ABOUT LINUX
grub-mkimage
GRUB-MKIMAGE(1) User Commands GRUB-MKIMAGE(1)NAME
grub-mkimage - make a bootable image of GRUB
SYNOPSIS
grub-mkimage [OPTION]... [MODULES]
DESCRIPTION
Make a bootable image of GRUB.
-d, --directory=DIR
use images and modules under DIR [default=/usr/lib/grub/@platform@]
-p, --prefix=DIR
set grub_prefix directory [default=/boot/grub]
-m, --memdisk=FILE
embed FILE as a memdisk image
-c, --config=FILE
embed FILE as boot config
-n, --note
add NOTE segment for CHRP Open Firmware
-o, --output=FILE
output a generated image to FILE [default=stdout]
-O, --format=FORMAT
generate an image in format available formats: i386-coreboot, i386-multiboot, i386-pc, i386-pc-pxe, i386-efi, i386-ieee1275,
i386-qemu, x86_64-efi, mipsel-yeeloong-flash, mipsel-yeeloong-elf, powerpc-ieee1275, sparc64-ieee1275-raw, sparc64-ieee1275-aout
-C, --compression=(xz|none|auto)
choose the compression to use
-h, --help
display this message and exit
-V, --version
print version information and exit
-v, --verbose
print verbose messages
REPORTING BUGS
Report bugs to <bug-grub@gnu.org>.
SEE ALSO grub-install(8), grub-setup(8), grub-mkrescue(1), grub-mknetdir(8)
The full documentation for grub-mkimage is maintained as a Texinfo manual. If the info and grub-mkimage programs are properly installed at
your site, the command
info grub-mkimage
should give you access to the complete manual.
grub-mkimage (GRUB) 1.99-12ubuntu5 October 2011 GRUB-MKIMAGE(1)