Bash Scripts and Clonezilla

I figured out how to install clonezilla on a centos box today.

Should help with mass disk imaging project.

During the course of my research I came across a way to embed files in a bash script.

Here is a sample

#/bin/bash

uudecode << 'HOSTSFILE'
begin 644 hosts
M,3(W+C`N,"XQ("`@;&]C86QH;W-T(&QO8V%L:&]S="YL;V-A;&1O;6%I;B!L
M;V-A;&AO<W0T(&QO8V%L:&]S=#0N;&]C86QD;VUA:6XT"CHZ,2`@("`@("`@
M(&QO8V%L:&]S="!L;V-A;&AO<W0N;&]C86QD;VUA:6X@;&]C86QH;W-T-B!L
7;V-A;&AO<W0V+FQO8V%L9&]M86EN-@H`
`
end
HOSTSFILE

Requires the sharutils package.

I didn’t run today.  Too much to do.

This entry was posted in Technical, Training. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.