Question: How can I display tabs (tab characters) in a file ?
Answer: In command mode do "set list", and the ^I is the tab identfier. To undo it do "set nolist". Enter :set list, or :set nolist to revert back.
Question: How do I know the space s in a file are white spaces or tabs in UNIX? Answer: Method 1: Use vi or vim, After opening the file, type :set list, all the tabs will shown as “^I” $ vi abc This file^Icontains some spaces and^I^Itabs.$
Method 2: Use cat command with -vt flags. $ cat -vt abc This file^Icontains some spaces and^I^Itabs.
Have a Unix Problem
Unix Books :-
Return to : - Unix System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|