let's say that I have a file with the following format:
name type 3425sdfsg125 url
between every entry (i.e name and type) is a variable amount of whitespace characters.
I want to replace the hash value 3425... with another hash value that is stored in ${hash} variable:
hash=48956sdglj23
the result should be:
name type 48956sdglj23 url
how would one do such a thing using sed?