File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ Search and replace text inside files (linux and Mac OS X):
2
+
3
+ MAC OS X:
4
+ find ./ -type f -exec sed -i '' -e "s/GigabitEthernet1/eth0\/0/" {} \;
5
+ find /home/hepta.alexsandro.f@ihb.local/.config/ -type f -exec grep -H '/home/alexsandro' {} \;
6
+
7
+ Linux:
8
+ find /home/hepta.alexsandro.f@ihb.local/.config/ -type f -exec sed -i "s/\/home\/alexsandro/\/home\/hepta.alexsandro.f@ihb.local/" {} \;
9
+ find /home/hepta.alexsandro.f@ihb.local/.config/ -type f -exec grep -H '/home/alexsandro' {} \;
10
+
11
+ find ./data/ -name "._*.*" -exec rm -rf {} \;
12
+ find ./backup/ -name "._*.*" -exec rm -rf {} \;
13
+ find ./backup/ -name ".Thumbnails" -exec rm -rf {} \;
14
+ find ./data/ -name ".Thumbnails" -exec rm -rf {} \;
15
+ find ./backup/ -name ".DS_Store" -exec rm -rf {} \;
16
+ find ./data/ -name ".DS_Store" -exec rm -rf {} \;
17
+
18
+ .
You can’t perform that action at this time.
0 commit comments