Need to extract numbers and create a comma separated list:
$ sed -e :label -e N -e ‘s/\n/, /’ -e ‘s/[ |]//g’ -e tlabel <<xxxx
> | 919 |
> | 1027 |
> | 1593 |
> | 1595 |
> xxxx
919,1027,1593,1595
Need to extract numbers and create a comma separated list:
$ sed -e :label -e N -e ‘s/\n/, /’ -e ‘s/[ |]//g’ -e tlabel <<xxxx
> | 919 |
> | 1027 |
> | 1593 |
> | 1595 |
> xxxx
919,1027,1593,1595