Search Results

Search: Posts Made By: glarizza
1,734
Posted By glarizza
D'OH! Why do I always do this to myself... ...
D'OH!

Why do I always do this to myself...

Thanks for the polite RTFM! Cheers!
1,734
Posted By glarizza
Display variables in CAT area
Hi All,

I've got a script to output YAML data, and I want to display data that's held inside variables inside one large CAT area. What's the easiest way to do this?

cat << "END"
---
classes:...
48,824
Posted By glarizza
That works! Thanks a million! #!/bin/sh ...
That works! Thanks a million!

#!/bin/sh

hostname=$1

#first=`echo $1 | cut -d '-' -f1`
#two=`echo $1 | cut -d '-' -f2`
#three= `echo $1 | cut -d '-' -f3`

one=`echo $hostname | awk -F'-'...
48,824
Posted By glarizza
Bash script to read a hostname and separate into variables
Hi All,

I'm trying to concoct a bash script to use with a Puppet Implementation that will accept a hostname and break it down into variables.

For example, my hostnames look like this -->...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 12:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy