Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

csv to column awk

cat * |  awk 'BEGIN { RS="," } {print $0}' 
cat * |  awk '{ RS="," } {print $0}'
# $0 mean print everything, play with print $1 # $2 when you have more rows 


cat file | awk 'BEGIN { RS="," }1'

https://riptutorial.com/awk/example/11074/rs---record-separator
https://www.unix.com/shell-programming-and-scripting/168415-awk-transpose-csv-row-column.html
Comment

PREVIOUS NEXT
Code Example
Shell :: cmd command pipe file to clipboard 
Shell :: git link on local project 
Shell :: task manager opera browser 
Shell :: linux history delete multiple lines 
Shell :: ntp not starting after reboot 
Shell :: switch user in ubuntu lxde 
Shell :: terminal osx compare folders and files mojave 
Shell :: how to setup promethus on docker 
Shell :: bash mkdir 
Shell :: pecl install specific version 
Shell :: whatsapp web for ubuntu 
Shell :: zsh open current directory in explorer 
Shell :: send file to remote computer linux 
Shell :: change file creation metadata 
Shell :: change line endings script for directory 
Shell :: create-new-github-repo 
Shell :: recover commits done on HEAD 
Shell :: how to create a new branch 
Shell :: install nixos mac m1 
Shell :: display used shell 
Shell :: add ssh public key to server 
Shell :: how to find max and min in column bash 
Shell :: after installing cypress is there a cypress directory 
Shell :: fatal: failed to install gitlab-runner: service gitlab-runner already exists 
Shell :: unix timestamp bash 
Shell :: ubuntu drivers 
Shell :: install docker in suse linux 
Shell :: log the output of the terminal 
Shell :: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x22 
Shell :: how to install helm 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =