Search Results

Search: Posts Made By: mohan44
2,208
Posted By mohan44
Help understand awk command
Help understand awk command
This command converts the column values to rows.

Command:
awk -s1=" " '{S=S?S OFS s1 $0 s1:s1 $0 s1} END{print S}' OFS=, Input_file

Example:
1
2
3
is...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 05:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy