fixed typo in file name

xargs using With sed
This commit is contained in:
Bonnie I-Man Ng
2021-05-16 16:17:31 +08:00
committed by GitHub
parent c1c3f8bcb5
commit 954f42c06a

View File

@ -895,7 +895,7 @@ find /dir/to/A -type f -name "*.py" -print 0| xargs -0 -r -I file cp -v -p file
##### With sed
```bash
ls |xargs -n1 -I file sed -i '/^Pos/d' filename
ls |xargs -n1 -I file sed -i '/^Pos/d' file
```
##### Add the file name to the first line of file