Like for ex. i am having a file, whose content is like
------------------------------
aba bba baba
abba baba baaa
addd ffff fffff
-----------------------------------
i want it to be like
-----------------------------------
aba bba baba
abba baba baaa
addd ffff fffff
------------------------------------
How can i set the coloumn width in unix... Please reply asap.
Thanks
There is no "columns" There are tab sizes, but those only apply to the current session (also saved in preferences but only for the current user), so that doesn't help as the next person/viewer/editor won't have the same settings.
You best bet is, if your good at regex, to use search and replace to add in spaces. Even better, is to modify whatever "writes" the data to do that. Anyway, for vi, here:
There is no "columns" There are tab sizes, but those only apply to the current session (also saved in preferences but only for the current user), so that doesn't help as the next person/viewer/editor won't have the same settings.
You best bet is, if your good at regex, to use search and replace to add in spaces. Even better, is to modify whatever "writes" the data to do that. Anyway, for vi, here:
IN CSV format how to reduce the column width ...That means when we open csv file it looks like an excel format.when we click on A or B or c etc columns..The column is expanding.so i want to reduce the column width.How to do it give me an idea...
In general, hijacking a 3-year-old thread is not a good start.
As for your question, you decrease the width by putting less things in the cell.
If, on the other hand, you are reading a CSV file and the contents are being imported in another format you need to configure the import process to address your input file as the proper type.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.