Bash scripting
Okay, say I wanted to search the elements in an array for two characters ".." and say I'd like to replace them with other characters (something like the first half of a URL http://show.com/files), how would I go about this? I was thinking of something like this
for x in ${LIST[@]}### That's the equivalent of foreach in perl no?
then something like awk?
Any help is appreciated.
|