pretty_print_csv_data
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pretty_print_csv_data [2021/07/02 19:24] – [bash function] 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:// | ||
- | ==== in vim ==== | + | ==== zsh function ==== |
- | Use | + | (Todo, 2023-11-27): |
+ | |||
+ | ==== vim ==== | ||
+ | To convert the whole file | ||
< | < | ||
:%!column -t | :%!column -t | ||
</ | </ | ||
- | or | + | To convert a visual selection |
< | < | ||
:'<,'> | :'<,'> | ||
- | </ | ||
- | to convert the whole file or a visual selection using | ||
- | respectively. | ||
- | |||
- | For example | ||
- | < | ||
- | :%!column -t | ||
</ | </ | ||
- | will convert | + | Sample input: |
< | < | ||
1.33570301776, | 1.33570301776, | ||
Line 70: | Line 66: | ||
</ | </ | ||
- | to | + | Sample output: |
< | < | ||
1.33570301776, | 1.33570301776, | ||
Line 77: | Line 73: | ||
</ | </ | ||
- | Ref:- https:// | + | Ref:- https:// |
pretty_print_csv_data.1625253880.txt.gz · Last modified: 2021/07/02 19:24 by admin