10 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
THIS IS A SAMPLE PRACTICAL EXAM QUESTION, COMPLETE FILE HAS BEEN ATTACHED AS WELL.
Hi All,
I'm a bit confused about assigning IP address from IP Ranges.
I am using this scenario below to understand.
Scenario
Adatum.com an international IT solutions company, is launching 12 new branches in a... (10 Replies)
Discussion started by: TryllZ
10 Replies
2. Shell Programming and Scripting
I want to find all files under /var directory that refer to any ip from 10.1.1.1 to 10.1.1.255 using grep. How can this be done.
Please help (5 Replies)
Discussion started by: proactiveaditya
5 Replies
3. UNIX for Dummies Questions & Answers
Dear All,
I need to classify my data into sets or ranges based on values in the second column of a file as - low medium and high.
INPUT:
file1.dat
1.tmp 1.03
2.tmp 0.38
3.tmp 3.23
4.tmp 1.34
I would like to classify all the numerical values into a range based on the followng... (3 Replies)
Discussion started by: chen.xiao.po
3 Replies
4. Shell Programming and Scripting
Hi All,
I have a log file which has first few characters of every line as a timestamp.
2010-06-01 04:56:02,802 DEBUG {Thread-27} Some text message
2010-06-01 04:56:02,802 DEBUG {Thread-27} Some text message
2010-06-01 04:56:02,802 DEBUG {Thread-27} Some text message
2010-06-01... (7 Replies)
Discussion started by: nitin14341
7 Replies
5. Shell Programming and Scripting
Hi All,
I would like to assign the following values to each column in my file.
if $i is between 1 and -1 (ie -1 < $i < 1) then print A;
if $i is between -2 and -1 && 1 and 2 (ie. -2 < $i < -1 && 1 < $i < 2) then print B;
if $i is between -3 and -2 && 2 and 3 (ie. -3 < $i < -2 && 2 < $i < 3)... (1 Reply)
Discussion started by: Fredrick
1 Replies
6. UNIX Desktop Questions & Answers
I have a number of instances wher I need to run reports for the previous month and need to include the last months date range in the sql.
I want to create a string which consists of the first and last dates of last month separated with an ' and ' ie for this month (Feb) I want it to say
'01/01/10... (3 Replies)
Discussion started by: Niven
3 Replies
7. Shell Programming and Scripting
Hi all,
I wrote few lines of code to check how long a process has been uptime.
I work on Solaris SunOS 5.10 and perl v5.8.4.
Here is the code:
#!/usr/bin/perl
use Time::Local;
$service="TCPIPSCH";
$PID_SERVICE=`ps -ef | grep -w $service | grep -v grep | awk '{print \$2}'`;
if... (2 Replies)
Discussion started by: Evan
2 Replies
8. Shell Programming and Scripting
Hi ,
I need a function that verfies the given date is between start date and end date .
I have written this but this not working if start date is 1900/01/01
Below is my code
validateDate()
{
RC=$#
if
then
return 0
else
... (2 Replies)
Discussion started by: Satyak
2 Replies
9. Shell Programming and Scripting
I want to print between the range two patterns if a particular pattern is present in between the two patterns. I am new to Unix. Any help would be greatly appreciated.
e.g.
Pattern1
Bombay
Calcutta
Delhi
Pattern2
Pattern1
Patna
Madras
Gwalior
Delhi
Pattern2
Pattern1... (2 Replies)
Discussion started by: joyan321
2 Replies
10. Shell Programming and Scripting
Dear All,
I have a sorted file like
1
2
3
8
9
10
45
46
47
78
The output will be range like
1 3
8 10
45 47
78 78 (9 Replies)
Discussion started by: saifurshaon
9 Replies
load_txt_font(3alleg4) Allegro manual load_txt_font(3alleg4)
NAME
load_txt_font - Loads a font script. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
FONT *load_txt_font(const char *filename, RGB *pal, void *param)
DESCRIPTION
This function can be used to load scripted fonts. The script file contains a number of lines in the format "filename start end", which
specify the source file for that range of characters, the Unicode value of the first character in the range, and the end character in the
range (optional, if left out, the entire input file will be grabbed). If the filename is replaced by a hyphen, more characters will be
grabbed from the previous input file. For example, the script:
ascii.fnt 0x20 0x7F
- 0xA0 0xFF
dingbats.fnt 0x1000
would import the first 96 characters from ascii.fnt as the range 0x20-0x7F, the next 96 characters from ascii.fnt as the range 0xA0-0xFF,
and the entire contents of dingbats.fnt starting at Unicode position 0x1000.
RETURN VALUE
Returns a pointer to the font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it to
avoid memory leaks.
SEE ALSO
register_font_file_type(3alleg4), load_font(3alleg4)
Allegro version 4.4.2 load_txt_font(3alleg4)