সাহায্য:Sed
ডিপথট থেকে
Delete string between two tags
Let's I want to delete all text between <ref> and </ref> tags in file 'dum' and write the new texts in 'dum1'. Use the following command:
sed -e 's/\(<ref\).*\(>\)/\1\2/' dum > dum1 sed -i -e 's/\(<ref>\)//' dum1
Replace all numbers with their Bengali equivalents
bn=( ০ ১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯ ) for i in `seq 0 9`; do sed -i "s/$i/${bn[i]}/" dum1; done for i in `seq 0 9`; do sed -i "s/$i/${bn[i]}/" dum1; done