kgaidis's user avatar
kgaidis's user avatar
kgaidis's user avatar
kgaidis
  • Member for 12 years, 9 months
  • Last seen this week
Stats
14,979
reputation
2.1m
reached
101
answers
17
questions
Loading…
About

Helpful Links

Tips

Reset Commits

git reset --hard <commidId> && git push --force

Renaming

  • brew install rename

Renames files recursively:

  • find . -exec rename -s 'CIPost' 'CIFeedUnit' {} +
  • find . | grep 'recon' | rename -s 'recon' 'refocus'

Rename file contents recursively:

  • export LC_CTYPE=C && export LANG=C && find . -type f -exec sed -i '' -e 's/CIPost/CIFeedUnit/g' {} +
  • git ls-files -z | xargs -0 sed -i '' -e 's/recon/refocus/g'
  • Sources: [1][2]
4
gold badges
86
silver badges
95
bronze badges
627
Score
30
Posts
25
Posts %
524
Score
80
Posts
68
Posts %
198
Score
21
Posts
18
Posts %
154
Score
11
Posts
9
Posts %
143
Score
22
Posts
19
Posts %
127
Score
16
Posts
14
Posts %
Top posts
View all questions, answers, and articles