pretty_print_csv_data
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
pretty_print_csv_data [2021/07/02 19:24] – [bash function] admin | pretty_print_csv_data [2021/07/02 19:42] – admin | ||
---|---|---|---|
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 ==== | + | ==== vim ==== |
- | Use | + | 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 | + | Sample input: |
- | < | + | |
- | :%!column -t | + | |
- | </ | + | |
- | + | ||
- | will convert | + | |
< | < | ||
1.33570301776, | 1.33570301776, | ||
Line 70: | Line 63: | ||
</ | </ | ||
- | to | + | Sample output: |
< | < | ||
1.33570301776, | 1.33570301776, | ||
Line 77: | Line 70: | ||
</ | </ | ||
- | Ref:- https:// | + | Ref:- https:// |
pretty_print_csv_data.txt · Last modified: 2023/11/27 05:59 by raju