Thanks for the response, what I was hoping to achieve was to avoid a larger
indentation when the counter reaches double values.
For instance, when just using \t it is printed as I would like;
I tried using sed to replace [\t] with dashes, but this does not work as I would like as it (obviously) causes an space displacement for the double character counter which I am trying to avoid;
i have a commad that display the total each directory size in KB.Below the commad and o/p:
ls -ltr | grep ^d | awk '{print $9}' | xargs du -sk
output:
what i want is the proper tab space b/w value and dir.? how to get that.
thanks in advance (10 Replies)
Hi,
I am using diff command to check difference between two files.Both files are very big and when i execute this command /var temp space is filled up almost 99%.
Can any one please tell me is there any way i can specify directory name which has more space so that diff can use that dir for... (2 Replies)
Wants to print line when there exist leading or trailing space or tab in fields 2,3 and 5
The below code prints all lines in file even if they dont have leading and trailing space or tab.
nawk -F"|" '{for(i=1;i<=NF;i++) {if ($i ~ "^*" || $i ~ "*$")}}1' file
file
Ouput required:
... (5 Replies)
Hello,
Is there a direct command to check if the delimiter in your file is a tab or a space? And how can they be converted from one to another.
Thanks,
G (4 Replies)
Hello all,
I have a file which is tab separated like that:
PHE_205_A TIP_127_W ARG_150_B
MET_1150_A TIP_12_W VAL_11_B
GLU_60_A TIP_130_W ARG_143_B
LEU_1033_A TIP_203_W ARG_14_B
SER_1092_A TIP_203_W
THR_1090_A TIP_203_W
SER_1092_A TIP_25_W ... (6 Replies)
Hi, I want to read lines from a file, and I'm using two methods
1 use
while read line
do
done<filename
2 use
line=`sed -n '3p' filename`
however, in both of them, I notice that the tab between fields are automatically converted to space
because I want to use awk over the... (10 Replies)
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
My file looks like
3 33 210.01.10.0 2.1 1211 560 26 45 1298 98763451112 15412323499 INPUT OK
3 233 40.01.10.0 2.1 1451 780 54 99 1876 78787878784 15423210199 CANCEL OK
Aim is to replace the spaces in each line by tab
Used: sed -e 's/ */\t/g'
But I get output like this... (3 Replies)
Discussion started by: sa@@
3 Replies
LEARN ABOUT REDHAT
xmtablistcopy
XmTabListCopy(library call) XmTabListCopy(library call)
NAME
XmTabListCopy -- A convenience function that creates a new tab list from an existing list
SYNOPSIS
#include <Xm/Xm.h>
XmTabList XmTabListCopy(
XmTabList tablist,
int offset,
Cardinal count);
DESCRIPTION
XmTabListCopy creates a new tab list consisting of a copy of a portion of the contents of the tablist argument. This function starts copy-
ing at the specified offset value of the tab list and copies count values.
tablist Specifies a tab list to be copied.
offset Specifies where to start copying. A value of 0 (zero) indicates begin at the beginning, a value of 1 indicates to skip the first
tab, and so on. A negative indicates to begin counting backwards from the end. A value of -1 indicates to start copying from the
last tab.
count Specifies the number of tabs to copy. A value of 0 (zero) indicates to copy all elements from the starting point to the end
(beginning if offset is negative) of the tab list.
RETURN
If tablist is NULL, this function returns NULL. Otherwise, this function returns a newly allocated XmTabList. If the function does allo-
cate an XmTabList, then the application is responsible for managing the allocated space. The application can recover the allocated space
by calling XmTabListFree.
RELATED XmTabList(3) and XmTabListFree(3).
XmTabListCopy(library call)