Delete the pattern line and save back (Mac OSX)\nMac use sed
command’s -i
option need String parameter , in order to tell sed save old file to this file suffix.
find . -type f -name '*[m|h]' | xargs -I {} sed -i '' '/.*凌星.*/d' {}
Delete the pattern line and save back (Mac OSX)\nMac use sed
command’s -i
option need String parameter , in order to tell sed save old file to this file suffix.
find . -type f -name '*[m|h]' | xargs -I {} sed -i '' '/.*凌星.*/d' {}