Hi,
Can some1 help me to output a tab in an echo statement.
I have tried
echo "RNC: \t NODEB"
but dont get the correct output.
I am a beginnger to unix, so pls hold back the laughs....if u can (5 Replies)
i want to format the file with tab delimitaed and assign heading to each column .
my format of file is
7 aiss 10
8 linux 25
9 linux_10for 35
Ouput i want like this
Ver Host Fails
7 aiss 10
8 linux 25
9 ... (5 Replies)
I have input like:
1234567890
cut -c1-3,6-7,9-10 input > output
Now I got 1236790.
I want to insert space between each cut. So the output like:
123 67 90
Can anybody help?
Thanks. (7 Replies)
Hi,
I'm using the following to insert lines into file:
sed ${rowNr}i'\
first row\
second row\
third row\
' file.txt
How can I add tab in front of each added line? "\t" or actual TAB does not seem to work?
Thanks! (2 Replies)
Hello,
Can someone help me to do this with awk or sed? I have a file with multiple lines, each line has many fields separated with a tab. I would like to add one more field holding 'na' in between the first and second fields.
old file looks like,
1, field1 field2 field3 ...
2, field1... (7 Replies)
Hello,
I have about 100 files in a directory with fields which are tab delimited. I would like to append the file name as the first field and it has to be done as many times as the total lines in the file.
For example,
myFile1.txt has the following data:
1 x y z
2 a b ... (5 Replies)
trying to insert a LF and 2 TABs for this:
sed 's/<td><\/td>/<td>\n\t\t<\/td>/' infile.
but, I'm not getting the syntax for inserting the LF and TABs correct (1 Reply)
Hi,
I have a String(words with tab space) in a file ->file1.txt
0xxxx 11 test $aa$ 8.43
when i read the file and assign to variable
value=$(cat file1.txt)
echo $value
i get the output without tab spaces.
0xxxx 11 test $aa$ 8.43
How to assign string... (2 Replies)
Hi all ,
I have a file having 12 columns tab delimited .
I need to read this file and remove the column 3 and column 4 and insert a word in column 3 as "AVIALABLE "
Is there a way to do this . I am trying like below
Thanks
DJ
cat $FILENAME|awk -F"\t" '{ print $1 "\t... (3 Replies)
Discussion started by: Hypesslearner
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)