INPUT
RANDOMSTRING BLA-BLA [111] RANDOMSTRING BLA-BLA
OUTPUT
RANDOMSTRING BLA-BLA [200] RANDOMSTRING BLA-BLA
[111] could contain various numbers with 3 digits: 120 or 300 or 400 or 101, etc.
So all I want ~this:
sed "s/Howtos<\/a> \[111] \//`grep '^<a href="' list.txt | wc -l`/" original.txt
"Regexp'ing the 111" that's the only thing I can't figure out
The output of:
grep '^<a href="' list.txt | wc -l
would be e.g.: 200 in the example
[and the closing], if you want those literal chars.