Assuming I have a line in a file with XXXX
being a placeholder I have selected via v
as follows:
XXXX Some other text
How can I change only the XXXX
with the output of an external command, such as date +%Y%m%d
?
I got as far as
:'<,'>!date +\%Y\%m\%d
but that replaced the whole line.