Re: scripting issue

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

 




ROOTDEV=$(ssh $HOST awk < /boot/grub/grub.conf '/^#.*root=/ {print $5}')

You had embedded single quotes. Also, you didn't need cat or grep. Also, the = sign and the # don't need to be backquoted. Also, the output of awk being assigned to ROOTDEV was simply being dropped.

also i'm rubbish at scripting!

thanks to all those who helped it now works fine

cheers


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux