You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Find and replace string in file

find  dir/subdir -type f -exec sed -i 's/foo/bar/g' {} +

Reploce file owner

find / -user oldname -exec chown newname:newgroup {} \;
  • No labels