mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 16:56:35 +00:00
Update README.md
This commit is contained in:
parent
cfa3d59e92
commit
aea54c126c
12
README.md
12
README.md
@ -834,8 +834,8 @@ for line in $(cat myfile); do echo $line; read -n1; done
|
||||
```bash
|
||||
{i//a/,}
|
||||
```
|
||||
#with grep
|
||||
```bash
|
||||
#with grep
|
||||
test="god the father"
|
||||
grep ${test// /\\\|} file.txt
|
||||
# turning the space into 'or' (\|) in grep
|
||||
@ -2167,12 +2167,12 @@ head -c 50 file
|
||||
|
||||
##### Group/combine rows into one row
|
||||
|
||||
e.g.
|
||||
AAAA
|
||||
BBBB
|
||||
CCCC
|
||||
DDDD
|
||||
```bash
|
||||
#e.g.
|
||||
#AAAA
|
||||
#BBBB
|
||||
#CCCC
|
||||
#DDDD
|
||||
cat filename|paste - -
|
||||
-->
|
||||
AAAABBBB
|
||||
|
Loading…
Reference in New Issue
Block a user