Search Results

Search: Posts Made By: Awanka
4,521
Posted By Awanka
Much thanks Reborg. I'm thinking of putting you...
Much thanks Reborg. I'm thinking of putting you on retainer.
4,521
Posted By Awanka
how do I make dynamic parameter names? Or get the value of a parameter evaluated twi
Say I write something like the following:

var1=1
var2=2

for int in 1 2
do
echo "\$var$int"
done

I want the output to be:

1
2

Instead I get something like:

$var1
$var2
24,735
Posted By Awanka
How to print a % within a printf() function using awk
Here is the code I'm using

{
printf("%11d %4.2f\% %4.2f\%\n", $1,$2,$3);
}

I want the output to look something like

1235415234 12.24% 52.46%

Instead it looks something like

319203842...
3,680
Posted By Awanka
I figured it out. Files have to be sorted in...
I figured it out. Files have to be sorted in ascii collating order before they can be joined.
3,680
Posted By Awanka
The join command doesn't seem to work if the join...
The join command doesn't seem to work if the join field is made up of numbers. This is bizarre
3,680
Posted By Awanka
I type in join file1 file2 I would expect...
I type in
join file1 file2

I would expect the output to be:

2007/04/04 Joey Jimmy
or
2007/04/04 Jimmy Joey
doesn't matter which.

Nothing shows up instead

How do I specify a space as...
3,680
Posted By Awanka
SunOS phxitetl01 5.8 Generic_117350-28 sun4u...
SunOS phxitetl01 5.8 Generic_117350-28 sun4u sparc SUNW,Netra-T12

Actually now that I've tried the example that I've given it does work.

Here's one that doesn't though

file1:

2007/04/04...
3,680
Posted By Awanka
Thanks Reborg, The join command doesn't seem...
Thanks Reborg,

The join command doesn't seem to work when the join field is a number or date though.

ie.
file1:
2007/04/04 Joey
file2:
2007/04/04 Tabris

join file1 file2
<nothing...
3,680
Posted By Awanka
How to parse 2 files simultaneously
Say I have 2 files of 2 rows of 3 columns each

file1:

cat catdata1 catdata2
dog dogdata1 dogdata2

file2:

cat catdata3 catdata4
dog dogdata3 dogdata4

and I need to combine both files...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy