12-09-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to read the last file for a particular day, such as, "Jun 13" because the CSV file is cumulative for the entire day, so I don't want all the previous files, I just want the last file, for that day.
I ran an 'ls -al | grep "June 13" > myLs.txt' (simplified) to list all files from that day.... (2 Replies)
Discussion started by: yongho
2 Replies
2. AIX
I am new to AIX. I was wondering if there is a security API on AIX which I can call from my C program to validate the userID and password of a user.
My plan is to have my C program prompt the user for UserID and password. I'll then call the AIX security API to determine what authority the user... (1 Reply)
Discussion started by: AIX_user
1 Replies
3. Shell Programming and Scripting
Hi,
I have a name.txt which is stored:
APPLE
ORANGE
RED
BLUE
GREEN
and my script is:
$name=`cat name.txt
for file_number in `ls 1 /appl/CH_DATA/archive/CACHE/CDBACKUP$name*.archived
however, my script cannot read name.txt and put into my scrip line, I would like the output is to... (18 Replies)
Discussion started by: happyv
18 Replies
4. UNIX for Dummies Questions & Answers
Hi Guys
How u all doing?
I am having tough time to achieve this I have a unix .ksh script which calls
sql script
Right now I harcoded column id's in sql script but I want to read them from a txt file
1084,1143,1074,1080,1091,1090,1101,1069,1104,1087,1089,1081
I want to read this... (4 Replies)
Discussion started by: pinky
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I have a set of .txt files I cannot read.
This is a part of what I see.
Is there a way to view these files?
_MO<P.6D@K;WU<B$X-;)SIV/ROO!UL+1P=VTT-?,SLC`MI/6QMS#UYGGT\+)C=#\UIO`TL/0]=#/T)
it's about 3 pages.
Thanks for your help.
Joe (3 Replies)
Discussion started by: rcracerjoe
3 Replies
6. Shell Programming and Scripting
i'm a beginner in shell and i have a txt file that is updating every second or msec so i need a program to read the last line of this txt file
is this possible to do? (5 Replies)
Discussion started by: _-_shadow_-_
5 Replies
7. AIX
Hi All,
How can I make the password of only two userid with 6 length while others are using regular policy of 8 or more length.
Please help. Thanks. (2 Replies)
Discussion started by: itik
2 Replies
8. Shell Programming and Scripting
Am reading userid and password.
code:
pmsg "Enter the userid \n"
read userid
pmsg "Enter password \n"
read password
pmsg "Enter Database name \n"
read database
When user type password, it a clear text. I want something like
******** or just a blank
any suggestion plz...
... (2 Replies)
Discussion started by: ilugopal
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I'm trying to sort 2 different .txt tab delimited files with the command line:
sort -k 1b,1 inputfile > outputfile
But doing that i'm also sorting the header (that ends at the end of my file).
How can i sort a .txt file without sorting the header but conserving the header in the... (3 Replies)
Discussion started by: alisrpp
3 Replies
10. Shell Programming and Scripting
Hello!
I need help :) I have a file like this:
AA BC FG
RF TT GH
DD FF HH
(a few number of rows and three columns) and I want to put the letters of each column in a variable step by step in order to give them as input in another script. So I would like to obtain:
for the 1° loop:... (11 Replies)
Discussion started by: edekP
11 Replies
LEARN ABOUT HPUX
posix_fadvise
posix_fadvise(2) System Calls Manual posix_fadvise(2)
NAME
posix_fadvise(), posix_fadvise64() - file advisory information
SYNOPSIS
Parameters
fd The open file descriptor to which the fadvise operation applies.
offset The begining of the specified range as a positive, byte offset.
len The length of the specified range in bytes.
advice Specifies advice to be applied to range.
DESCRIPTION
The function is used to advise the system about the expected behavior of the application with respect to the data in the file associated
with the open file descriptor, fd, starting at offset and continuing for len bytes. The specified range need not currently exist in the
file. If len is zero, all data following offset is specified.
It should be noted that the effect of all hints is cumulative for a given file object. All hints will be removed on processing the last
close of the file object.
The function may be used for large file access by a 32-bit application built with set to 64.
The advice parameter is used to convey the hint to be applied to the data and may be one of the following values:
Specifies that the application has no advice to give on its behavior with respect to the specified data. It is the default characteristic
if no advice is given for an open file.
Specifies that the application expects to access the specified range of data
sequentially from the lower offsets to higher offsets.
Specifies that the application will expect to access the specified
specified range of data in a random order.
Specifies that the application will expect to access the specified
range of data in the near future.
Specifies that the application will expect that it will not
access the specified range of data in the near future.
Specifies that the application will expect to access the specified range
of data once and then not reuse it thereafter.
These values will be defined in
RETURN VALUE
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If the service fails, is set to one of the following values:
The fd argument is not a valid file descriptor.
The fd argument is associated with a pipe or FIFO.
The posix_fadvise operation is not supported by the underlying file system.
The value of advice or one of the other input values has been found to be invalid.
A designated hint is not supported by the underlying file object.
EXAMPLES
AUTHOR
was derived by HP from the IEEE POSIX 1003.1-2001 Standard.
SEE ALSO
fadvise(2), fcntl(2), fadvise(5), fcntl(5).
STANDARDS CONFORMANCE
posix_fadvise(2)