Skip to content

Commit a8fbbd6

Browse files
authored
Create search_insile_files_mac_linux.txt
1 parent 07e4cd2 commit a8fbbd6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

search_insile_files_mac_linux.txt

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
.

0 commit comments

Comments
 (0)