Hi all,
In unix shell, I want to get two strings ending with "." and starting with "." from a string "chan.txt"
For example, a string "chan.txt".
The first string is "chan"
The second string is "txt"
Yours
Wilson (1 Reply)
Hi All,
I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel).
For my application:
<sar -U ALL>
CPU %user %nice %system %idle
...
10:58:04 0 153.10 0.00 38.76 0.00
10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Hi All,
I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations:
1. I am restrained to 2 input files only.
2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Hi all,
I am new to Linux/shell scripting having moderate knowledge.
In my script, I need to get execution time of a command (say 'ls') in mili seconds level. For this i tried using "time" command to retrieve the total execution time in milli seconds. But, the problem is that, how to save... (9 Replies)
Hi,
I am trying to get the system RAM size from "top" command's output by the following but it is not working.
top | sed "s/^Mem.**\(*\), *//" (10 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi all.
I have a .txt file that I need to sort it
My file is like:
1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO)
2- ... (10 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hi,
I have to redirect output of the command "perldoc perllocal" to new file which
contains all the perl module installed.
Currently using
perldoc perllocal >> mod_data
This does not contain all perl modules installed locally on machine, and each character is doubled.
Please... (3 Replies)
Discussion started by: asak
3 Replies
LEARN ABOUT SUSE
get_config_text
get_config_text(3alleg4) Allegro manual get_config_text(3alleg4)NAME
get_config_text - Returns a string translated to the current language. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
const char *get_config_text(const char *msg);
DESCRIPTION
This function is primarily intended for use by internal library code, but it may perhaps be helpful to application programmers as well. It
uses the `language.dat' or `XXtext.cfg' files (where XX is a language code) to look up a translated version of the parameter in the cur-
rently selected language.
This is basically the same thing as calling get_config_string() with `[language]' as the section, `msg' as the variable name, and `msg' as
the default value, but it contains some special code to handle Unicode format conversions. The `msg' parameter is always given in ASCII
format, but the returned string will be converted into the current text encoding, with memory being allocated as required, so you can
assume that this pointer will persist without having to manually allocate storage space for each string.
Note that if you are planning on distributing your game on the Unix platform there is a special issue with how to deal with the `lan-
guage.dat' file. Read section "Files shared by Allegro" of the chapter "Unix specifics" to learn more about this.
RETURN VALUE
Returns a suitable translation if one can be found or a copy of the parameter if nothing else is available.
SEE ALSO get_config_string(3alleg4), reload_config_texts(3alleg4)Allegro version 4.4.2 get_config_text(3alleg4)