pretty_print_csv_data
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pretty_print_csv_data [2021/07/02 19:12] – created admin | pretty_print_csv_data [2023/11/27 05:59] (current) – [bash function] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== bare bones solution | + | ==== command line ==== |
< | < | ||
| column -t -s, | | column -t -s, | ||
Line 46: | Line 46: | ||
See also:- https:// | See also:- https:// | ||
+ | ==== zsh function ==== | ||
+ | (Todo, 2023-11-27): | ||
+ | |||
+ | ==== vim ==== | ||
+ | To convert the whole file | ||
+ | < | ||
+ | :%!column -t | ||
+ | </ | ||
+ | To convert a visual selection | ||
+ | < | ||
+ | :'<,'> | ||
+ | </ | ||
+ | |||
+ | Sample input: | ||
+ | < | ||
+ | 1.33570301776, | ||
+ | 1.34538754675, | ||
+ | 1.34808186291, | ||
+ | </ | ||
+ | |||
+ | Sample output: | ||
+ | < | ||
+ | 1.33570301776, | ||
+ | 1.34538754675, | ||
+ | 1.34808186291, | ||
+ | </ | ||
+ | |||
+ | Ref:- https:// |
pretty_print_csv_data.1625253142.txt.gz · Last modified: 2021/07/02 19:12 by admin