Quote:
Originally Posted by Perderabo
This would be easier with sed but I got this to work in vim and I think that it will work in plain old vi:
:%s+\(/.*\)=+\1=../..\1 777 user group+
It will certainly work in sed:
sed 's+\(/.*\)=+\1=../..\1 777 user group+' < inputfile > outputfile
Thanks to one of my buddies, he was able to modify your original cmd and come up with:
sed 's+\(data.*\)+\1=../../\1 777 user group+' < inputfile > outfile
Many thanks!