awk use string as field separator
Just use function split in awk command to split a line into an array 'a'
using a choosen string as delimiter as for example ", " in next use case:
echo "hi, bye, hey" | awk '{split($0,a,", "); print a[3],a[2],a[1]}'
Or you could also do next:
echo "a, b, c" | sed 's/, /,/g' file.txt | awk -F ',' '{print $1 $2 $3}'
Also in C++:
- git pull from differemt server
- see detail of pid
- trojitá
- git create branch
- ubuntu record video change time
- cpu core command linux
- scp copy recursive
- get date whit batch
- Git
- github remote
- ln -sf linux
- history delete
- install docker compose homebrew
- kill proccess using serial port
- ssh run single command
- git install on alpine
- how to remove sensitive data from github history
- bash print lines unique to one file
- linux convert pdf trennen
- how to change a project of changing from private to public in github?
- npm run serve in background
- set head of branch at specific commit
- ubuntu no bluetooth found
- ionic capacitor ios live reload