Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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
 
PREVIOUS NEXT
Tagged: #csv #column #awk
ADD COMMENT
Topic
Name
8+9 =