10-01-2009
Can you provide required output?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi there,
In my shell script I'm using a variable $ICO to speicfy the type of file that I'm processing e.g. VFR = France.
further in my shell I'm trying to programatically set the sql file thtat I want to run :-
REPORTTXT=/tmp/$ICO3hr.dat
however when I check the value (as below) :-
... (4 Replies)
Discussion started by: rjsha1
4 Replies
2. UNIX for Dummies Questions & Answers
So seems only way I'm going to learn is by asking. In the following and I can tell you that $ENV=384:
grep $ENV $TSH/ftp/some.files | while read ELABEL EENV EFILE RFILE
do
if ]; then
rm -ef ${RFILE}*
else
rm -ef ${EFILE}*
fi
done
In the some.files :
... (2 Replies)
Discussion started by: NycUnxer
2 Replies
3. Shell Programming and Scripting
Hi i have two question
1. Yahoo!
In above there are total three words
1.1. www
1.2. yahoo
1.3 com
how can i take all three things in different variable, i dont understand that how to separate dot.
it looks like that
a=www
b=yahoo
c=com
2. i have variable xyz whois value... (7 Replies)
Discussion started by: learnbash
7 Replies
4. Shell Programming and Scripting
Hi All,
I am trying to convert the below Csh while loop into Perl while loop but the problem is that in this csh script, i have 2 variables inside a variable -> $count is a variable {SB$count} as a whole is another variable. Csh is able to assign values to such variable like the below but i do... (3 Replies)
Discussion started by: Raynon
3 Replies
5. Shell Programming and Scripting
Hi all
I've been working on a bash script parsing through debug/trace files and extracting all lines that relate to some search string. So far, it works pretty well. However, I am challenged by one requirement that is still open.
What I want to do:
1) parse through a file and identify all... (3 Replies)
Discussion started by: reminder
3 Replies
6. Shell Programming and Scripting
Is there anyway to accomplish this?
(ksh)
FILES_TO_PROCESS='NAME1 NAME2'
SOURCE_NAME1=/tmp/myfile
TARGET_NAME1=/somewhere/else
# other file names
for i in $FILES_TO_PROCESS
do
file1=SOURCE_$i
file2=TARGET_$i
echo cp ${$file1} ${$file2} <-- how do get this to work.
done (2 Replies)
Discussion started by: koondog
2 Replies
7. Shell Programming and Scripting
I apologize for the title but I am not even sure myself what to call this. I am going to use an example of a pizza delivery. I need to make an interactive script that allows users to order a certain number of pizzas, and then choose what they want on each pizza. Here is my code so far....
... (1 Reply)
Discussion started by: cstadnyk1
1 Replies
8. Shell Programming and Scripting
Hello,
First post for Newbie as I am stumped. I need to get certain elements for a specific PID from the ps command. I am attempting to pass the value for the PID I want to retrieve the information for as a variable. When the following is run without using a variable, setting a specific PID,... (3 Replies)
Discussion started by: Coyote270WSM
3 Replies
9. Shell Programming and Scripting
Hi to All,
Please find below details.
file_config.config
export file1_status="SUCCESS"
export file2_status="SUCCESS"
file_one.sh
I am calling another two shell script from these script. I need to pass individual two script status (If it's "FAILED") to file_main.sh.
file_main.sh
I... (2 Replies)
Discussion started by: div_Neev
2 Replies
10. Shell Programming and Scripting
Hello I need to alter a script to check for a flag file but there are now more than one type of flag file in my directory. Basically if any of these flg files exist then the MASK value should be set? Flag files to be included in assignment to variable
e2e_scheduled*.flg
COLL_STOP*.flg... (1 Reply)
Discussion started by: andymay
1 Replies
LEARN ABOUT NETBSD
stdint
STDINT(3) BSD Library Functions Manual STDINT(3)
NAME
stdint -- standard integer types
SYNOPSIS
#include <stdint.h>
DESCRIPTION
The <stdint.h> header provides source-portable integer types of a specific size, smallest memory footprint with a minimum size, fastest
access speed with a minimum size, largest integer size, and those capable of storing pointers.
The types int8_t, int16_t, int32_t, and int64_t provide a signed integer type of width 8, 16, 32, or 64 bits, respectively. The types
uint8_t, uint16_t, uint32_t, and uint64_t provide an unsigned integer type of width 8, 16, 32, or 64 bits, respectively. These integer types
should be used when a specific size is required.
The types int_fast8_t, int_fast16_t, int_fast32_t, and int_fast64_t provide the fastest signed integer type with a width of at least 8, 16,
32, or 64 bits, respectively. The types uint_fast8_t, uint_fast16_t, uint_fast32_t, and uint_fast64_t provide the fastest unsigned integer
type with a width of at least 8, 16, 32, or 64 bits, respectively. These types should be used when access speed is paramount, and when a
specific size is not required.
The types int_least8_t, int_least16_t, int_least32_t, and int_least64_t provide the smallest memory footprint signed integer type with a
width of at least 8, 16, 32, or 64 bits, respectively. The types uint_least8_t, uint_least16_t, uint_least32_t, and uint_least64_t provide
the smallest memory footprint unsigned integer type with a width of at least 8, 16, 32, or 64 bits, respectively. These types should be used
when memory storage is of concern, and when a specific size is not required.
The type intmax_t provides a signed integer type large enough to hold any other signed integer. The type uintmax_t provides an unsigned
integer type large enough to hold any other unsigned integer. These types are generally the largest signed and unsigned integer types avail-
able on a specific architecture.
The type intptr_t provides a signed integer type with the ability to hold a pointer to void, that can later be converted back to a pointer to
void.
The type uintptr_t provides an unsigned integer type with the ability to hold a pointer to void, that can later be converted back to a
pointer to void.
SEE ALSO
inttypes(3), limits(3), stdbool(3), unistd(3)
STANDARDS
The <stdint.h> header conforms to ISO/IEC 9899:1999 (``ISO C99'') and IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The <stdint.h> header was first introduced in NetBSD 1.6.
BSD
August 9, 2011 BSD