Direct output of mkinitrd command generator to shell
Hi All,
Is there a way of directing/piping the output of mkinitrd_command_generator.sh directly to the shell so that I don't need to type out the resultant command? |
Just pipe it to bash
|
Use pipe to bash:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh parameters_if_needed | bash |
Or put the command inside "$( )" like so:
Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r) |
I always open /etc/mkinitrd.conf with Vim, paste the output of mkinitrd_command_generator.sh into the configuration file (:r !/usr/share/mkinitrd/mkinitrd_command_generator.sh) and then edit it.
|
Highlight the output with the left mouse button held down, then paste with the middle button. Maybe uncool and uncouth, but works for me.
|
Quote:
|
Quote:
|
Quote:
|
# $(/usr/share/mkinitrd/mkinitrd_command_generator.sh) FTW
|
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -c > /etc/mkinitrd.conf
# mkinitrd -F So you can keep track of your configs. |
Quote:
|
All times are GMT -5. The time now is 08:21 PM. |