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 :: get pid of proccess 
Shell :: ubuntu server see system temp 
Shell :: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-pty-prebuilt@0.7.6 install: `prebuild-install || node scripts/install.js` 
Shell :: bash pid background process 
Shell :: pmset cancel scheduled 
Shell :: how to clone pull all repositories from github 
Shell :: brew on windows 
Shell :: Guthub Funding.yml 
Shell :: conEMU alias / 
Shell :: View Changes Before Committing in git command 
Shell :: stash a single file 
Shell :: powershell computer information 
Shell :: how to know if my linux is debian or fedora 
Shell :: dpkg: command not found 
Shell :: git auto sign 
Shell :: how to change branches in githup from terminal 
Shell :: git shothand commands 
Shell :: linux create file 
Shell :: git push unable to create temporary object directory 
Shell :: delete history linux range 
Shell :: shopware 6 build storefront 
Shell :: install zeek on ubuntu 18.04 
Shell :: mv bash 
Shell :: linux command to delete direcoty with specified name recursivel 
Shell :: git get remote branch 
Shell :: realtek 8852 
Shell :: symfony skeleton version 
Shell :: kubernetes show all 
Shell :: linux command to show memory hardware 
Shell :: pull file from specific commit git 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =