Change a pattern in all the files in one go!
#!/bin/sh
for file in $(grep -il "devdb" *.sql)
do
sed -e "s/devdb/testdb/g" $file > /tmp/tempfile.tmp
mv /tmp/tempfile.tmp $file
done
Sphoot - A Marathi Word for "IMPROMPTU"
Change a pattern in all the files in one go!
#!/bin/sh
for file in $(grep -il "devdb" *.sql)
do
sed -e "s/devdb/testdb/g" $file > /tmp/tempfile.tmp
mv /tmp/tempfile.tmp $file
done
In Order to change the date format through Personalization, please follow the steps given below:
1. Navigate, Root > People Tools > Personalization > Personalization Options > Search
Here, you will get the option for the different application for which you want to change the Date Format or you can also choose PPTL (People Tools) which change the Date Format in the Tools itself.
Choose, PPTL.
2. Look for a Definition : DFRMT, for the Date Format.
3. On the Format Tab, just click on this Tab.
4. Now, click on the "Set Option Default Value".
5. Change the Option Default Value as per your requirement MMDDYY and click OK.
Ofcourse! Save