You are not logged in.

#1 2005-05-15 15:28:33

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

writing to an array using bash[solved]

Im trying reset a certain array (md5sums=('bla' 'bla')) and hard coated it in a file using bash:

source /path/to/a/./PKGBUILD
unset md5sums
md5sum config > temp.sums
new=`cat temp.sums | cut -d ' ' -f 1`
md5sum[1]=$new

when ${md5sum[@]} is echoed back to me, I can see it has changed. My problems is I need to hard coat that new array into the source file, but I can't figure out how to do that. Any ideas?

Offline

#2 2005-05-15 21:31:14

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: writing to an array using bash[solved]

nevermind, I found a way around it roll

Offline

Board footer

Powered by FluxBB