I have this situation in my script (simplified):
A=C
C=10
I need to get number 10 using just A variable.
I tried with :
echo $`echo $A` - but i get $C string (i need number)
Thanks very much for any help! (1 Reply)
Hi,
I am a new learner of join command. Some result really make me confused.
Please kindly help me.
input:
file1:
LEO oracle engineer 210375
P.Jones Office Runner ID897
L.Clip Personl Chief ID982
S.Round UNIX admin ID6
file2:
Dept2C ID897 6 years
Dept5Z ID982 1 year
Dept3S ID6 2... (1 Reply)
Hi
I've 2 files:
I'd like to get an output like:
if I do like:
join file1 file2
I get
Where line 30 miss. I'm reading this old post:
https://www.unix.com/unix-dummies-questions-answers/14647-join-command.html.
Where a solutionn with awk is suggested.
I mean is possible get the same... (5 Replies)
So i'm currently working on a project where I'm attempting to display information of users from the /etc/passwd file and also another information file holding addition information about users.
Problem is I've been trying to join the two files together and have all of the information about each... (2 Replies)
Hi,
I have 20 tab delimited text files that have a common column (column 1). The files are named GSM1.txt through GSM20.txt. Each file has 3 columns (2 other columns in addition to the first common column).
I want to write a script to join the files by the first common column so that in the... (5 Replies)
Hello im new here... Im trying to read file and create folders from words in it but i get this for loop error
awk : line 3 : syntax error at or near for
my code is..
#!/bin/bash
begin
for (( i=1;i<=5;i++));
do
awk -v i=$i $0 { print $i }
mkdir $i
done
{print $i}
end {}
i have... (7 Replies)
Hi Guys,
I want to combine 2 files and and put together in 1 file . See below desired output. Any help will be much appreciated.
FILE AX 2134 101L 12345.00 22222.00 1 10
X 2134 101L 12345.00 22222.00 11 20
X 2134 101L 12345.00 22222.00 21 30
X 2134 111L 77777.00 ... (3 Replies)
Discussion started by: H.R
3 Replies
LEARN ABOUT DEBIAN
draw_lit_sprite
draw_lit_sprite(3alleg4) Allegro manual draw_lit_sprite(3alleg4)NAME
draw_lit_sprite - Draws a sprite tinted with a specific color. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void draw_lit_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y, int color);
DESCRIPTION
In 256-color modes, uses the global color_map table to tint the sprite image to the specified color or to light it to the level specified
by "color", depending on the function which was used to build the table (create_trans_table or create_light_table), and draws the resulting
image to the destination bitmap. In truecolor modes, uses the blender functions to light the sprite image using the alpha level specified
by "color" (the alpha level which was passed to the blender functions is ignored) and draws the resulting image to the destination bitmap.
The "color" parameter must be in the range [0-255] whatever its actual meaning is. This must only be used after you have set up the color
mapping table (for 256-color modes) or blender functions (for truecolor modes). Example:
/* Some one time initialisation code. */
COLOR_MAP global_light_table;
create_light_table(&global_trans_table, my_palette,
10, 10, 60, NULL);
...
if (get_color_depth() == 8)
color_map = &global_light_table;
else
set_trans_blender(40, 40, 255, 255);
/* Lit the cape with a blueish light. */
draw_lit_sprite(buffer, colored_cape, x, y, 64);
SEE ALSO draw_sprite(3alleg4), draw_trans_sprite(3alleg4), draw_gouraud_sprite(3alleg4), draw_lit_rle_sprite(3alleg4), color_map(3alleg4),
set_trans_blender(3alleg4), bitmap_mask_color(3alleg4), exblend(3alleg4)Allegro version 4.4.2 draw_lit_sprite(3alleg4)