11-30-2010
printing two values with TAB in between
Dear friends,
I want to print variables' values in certain format where space between two values of variables is "a tab"
I tried where I provided "tab" between two varibales.
But when it print values on screen its giving me output without spaces in two values.
Request you to help me in guiding me.
Thanks,
Anushree.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
At work, when I issue:
lpr -P$PRINTER -h filename
the file always prints a line then does a vertical tab off that first line instead of starting the new line at left.
It does this with every file I've tried, and I can't find any options that are set that would make things print this way.
I... (2 Replies)
Discussion started by: scaredinjuly
2 Replies
2. Shell Programming and Scripting
Hi,
I have a file that looks like this:
36-
9+
45-
43+
400-
700+
I want to put a space between the number and the -/+ sign. So the output file will look like this
36 -
9 +
45 -
43 +
400 -
700 + (3 Replies)
Discussion started by: kylle345
3 Replies
3. Shell Programming and Scripting
Hi
I am trying to retrieve values from a tab-delimited file.I am using
while read record
value=`echo $record | cut -f12`
done
Where 12 is the column no i want retieve and record is one line of the file.
But it is returning the full record.
Plz help (4 Replies)
Discussion started by: akashtcs
4 Replies
4. Shell Programming and Scripting
hi people;
the similar topic is being opened in here and here but i have confused with following condition. so i wanted to open a seperate topic.
from my file.txt:...
...
...
110105-16:04:04 192.168.1.1 7.1j Port_NODE_MODEL_M_1_8 stopfile=/tmp/10544... (0 Replies)
Discussion started by: gc_sw
0 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have the following code:
LIST=`ls | grep '.sql$'`
echo $LIST
The above code will give me something like..
file1.sh file2.sh file3.sh file4.sh file5.sh
I want to display the values into rows using echo like...
file1.sh
file2.sh (5 Replies)
Discussion started by: adshocker
5 Replies
6. Programming
Hi,
I have small problem to print float value in the fallowing code
float Cx, W,f=250000, Cr=92.00,pi=3.14;
W=2*pi*f;
Cx = 1/W.Cr; //Cx value will be come around like 7.07E-9.
printf("capacitance value: %.10f",Cx);
I am trying to print Cx value using above code but it was not... (3 Replies)
Discussion started by: veerubiji
3 Replies
7. Programming
I have a class
and want to print values in MOD using
L = new Layer* ;
How can I print the values in MOD using this object L???
class Layer
{
public :
Model* MODP;
Model* MODS; (1 Reply)
Discussion started by: kristinu
1 Replies
8. UNIX for Dummies Questions & Answers
Hello!
I have a tab delimited file with values in three columns. Some values occur in all three columns, other values are present in only one or two columns. I would like to sort the file so that rows with no missing values come first, rows with one missing values come next, and rows with two... (9 Replies)
Discussion started by: MBarrett1213
9 Replies
9. Shell Programming and Scripting
Hi All
I had requirement where I need to re-order columns in a file by using a control file.
here is the ctrl file
c1
c2
c3
source file
c3 | c1 | c2
a | b| c
I should create output file based on the ctrl file columns
o/p should look like this
c1 | c2 | c3
b| c|a
I wrote some... (9 Replies)
Discussion started by: gvkumar25
9 Replies
10. UNIX for Beginners Questions & Answers
The awk below executes and produces the current output. it skips the header in row 1 and prints $4,$5,$6 and then adds the header row back.
The problem is that it keeps the tailing tab and prints it in front of $1. I could add a pipe to remove the tab, but is there a better way to do it with on... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT CENTOS
xmtabcreate
XmTabCreate(library call) XmTabCreate(library call)
NAME
XmTabCreate -- A convenience function that creates a tab stop
SYNOPSIS
#include <Xm/Xm.h>
XmTab XmTabCreate(
float value,
unsigned char units,
XmOffsetModel offset_model,
unsigned char alignment,
char *decimal);
DESCRIPTION
XmTabCreate creates a tab stop at a position defined by the value and units arguments.
value Specifies the floating point value to be used in conjunction with units to calculate the location of the tab stop. Note that
negative values are not permitted.
units Specifies the unit type (for example, XmMILLIMETERS) to be used in conjunction with value to calculate the location of the tab
stop. You can specify any unit described by the XmConvertUnits reference page. For resources of type, dimension, or position,
you can specify units as described in the XmNunitType resource of the XmGadget, XmManager, or XmPrimitive reference page.
offset_model
Specifies whether the tab value represents an absolute position or a relative offset from the previous tab. Valid values are
XmABSOLUTE and XmRELATIVE.
alignment Specifies how the text should be aligned relative to this tab stop. Valid values are XmALIGNMENT_BEGINNING.
decimal Specifies the multibyte character in the current language environment to be used as the decimal point for a decimal aligned tab
stop. This is currently unused.
RETURN
Returns a newly allocated XmTab. The application is responsible for managing this allocated space. The application can recover this allo-
cated space by calling XmTabFree.
RELATED
XmTab(3) and XmTabFree(3).
XmTabCreate(library call)