I am using sed in linux. I have done most of the job but need help in this:
a part of the pattern is like these:
document=SomeRanddomAlphaNumeric/10DigitNumber, user=
some examples:
I am expecting to find:
ducument=LKJHuasfb89/9878476578, user=
ducument=jhdn uryhf 9adu/6767898893, user=
ducument=iujjnbmr Ohndj88isju/6767898734, user=
and turn them to:
ducument=replacetext, user=
ducument=replacetext, user=
ducument=replacetext, user=
I am using this as sed command :
$ sed -i 's/regex/replacetext/g' $file.txt
replace text is constant but I need the regex for above command.