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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ##### With sed
```bash ```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 ##### Add the file name to the first line of file