forked from derekqian/coDoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreplace
19 lines (16 loc) · 1.15 KB
/
replace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# find conn -iname *.c -exec sed -e 's/street\s\+star/street komme/g' --in-place '{}' \;
#find ./edu.pdx.svl.coDoc.cdt.core/ -exec sed -e 's/org.dworks.bbcdt/edu.pdx.svl.coDoc.cdt/' --in-place '{}' \;
#find ./edu.pdx.svl.coDoc.cdt.core/ -exec sed -e 's/(org.dworks.bbcdt/(edu.pdx.svl.coDoc.cdt/' --in-place '{}' \;
#find ./edu.pdx.svl.coDoc.cdt.ui/ -exec sed -e 's/org.dworks.bbcdt/edu.pdx.svl.coDoc.cdt/' --in-place '{}' \;
#find ./edu.pdx.svl.coDoc.cdt.ui/ -exec sed -e 's/(org.dworks.bbcdt/(edu.pdx.svl.coDoc.cdt/' --in-place '{}' \;
#find ./temp/ -exec sed -e 's/org.dworks.bbcdt/edu.pdx.svl.coDoc.cdt/' --in-place '{}' \;
find ./coDoc/ -exec sed -e 's/vdt.hdvd/coDoc/' --in-place '{}' \;
find ./coDoc/ -exec sed -e 's/VDT.hdvd/coDoc/' --in-place '{}' \;
# cat file | tr "abc" "xyz" > new_file
# cat file | tr [a-z] [A-Z] > new_file
# cat file | tr [A-Z] [a-z] > new_file
# cat file | tr -d "Snail" > new_file
# cat file | tr -d "\n\t" > new_file
# cat file | tr -s "\n" > new_file // only leave one '\n', used to delete blank lines
# cat file | tr -d "\r" > new_file (or) # cat file | tr -s "\r" "\n" > new_file // used to transform from Windows to Linux