Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 167 Bytes

find_sed_insertIntoFile.md

File metadata and controls

9 lines (6 loc) · 167 Bytes

OS X向多个文件插入多行数据的使用:

find . -d 1 -name "*.txt"  | while read file; do sed -i '' -e '1i \
line_AAA \
line_BBB ' $file; done