Update README.md

This commit is contained in:
onceupon 2018-04-10 10:15:04 +08:00 committed by GitHub
parent cfa3d59e92
commit aea54c126c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -834,8 +834,8 @@ for line in $(cat myfile); do echo $line; read -n1; done
```bash ```bash
{i//a/,} {i//a/,}
``` ```
#with grep
```bash ```bash
#with grep
test="god the father" test="god the father"
grep ${test// /\\\|} file.txt grep ${test// /\\\|} file.txt
# turning the space into 'or' (\|) in grep # turning the space into 'or' (\|) in grep
@ -2167,12 +2167,12 @@ head -c 50 file
##### Group/combine rows into one row ##### Group/combine rows into one row
e.g.
AAAA
BBBB
CCCC
DDDD
```bash ```bash
#e.g.
#AAAA
#BBBB
#CCCC
#DDDD
cat filename|paste - - cat filename|paste - -
--> -->
AAAABBBB AAAABBBB