Sponsored Content
Top Forums Shell Programming and Scripting Problem in arithemetic operation Post 302188393 by subin_bala on Wednesday 23rd of April 2008 10:47:36 AM
Old 04-23-2008
Thanks its working
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

multiple operation

Fellows I ran in to a problem this morning and could not figure out a solution to it. I have a file like OBJECT="ABC" GFT="JHU" DESCRIPTION="ABC MNCL JHDG " OBJECT="ABC" GFT="JHU" DESCRIPTION="ABC MNCL JHDG " OBJECT="ABC" GFT="JHU" DESCRIPTION="ABC MNCL JHDG " DESCRIPTION="ABC MNCL JHDG "... (2 Replies)
Discussion started by: ajnabi
2 Replies

2. UNIX for Dummies Questions & Answers

arithemetic problem

I am using a script which does a lot of math and I am facing a problem.One value is greater than 10 mi and the script converts it to exponents i.e 70000000 7e... and this is causing my statements to become invalid. This is what I used A=`expr "${total}-${FAC}"|bc` where $total and $FAC are... (9 Replies)
Discussion started by: anujairaj
9 Replies

3. Shell Programming and Scripting

string operation

Hi all, Here is my situation. I have a text file TXT_FILE like this: john 123456 jack 94589 kelvin 94595 mary 88585 I want to read the first word in each line ( the name ) and assign to a string variable ( EX_LIST ) in my script so that I can use later as this commandfor i in... (6 Replies)
Discussion started by: fongthai
6 Replies

4. Shell Programming and Scripting

awk - arithemetic functions with external variables

I'm trying to get awk to do arithmetic functions with external variables and I'm getting an error that I cannot figure out how to fix. Insight would be appreciated money=$1 rate1=$(awk -F"\t " '/'$converting'/{print $3}' convert.table) rate2=$(awk -F"\t"... (2 Replies)
Discussion started by: DKNUCKLES
2 Replies

5. Shell Programming and Scripting

Array operation

Hi, I would like ask for you help for coding array operation. array= ( a b c d e f ) I would like to remove entry "d" from my array and import the remaining entries back to the array. Thanks. (3 Replies)
Discussion started by: phamp008
3 Replies

6. UNIX for Dummies Questions & Answers

cat operation

Hi, Can anyone explain me what is the functionality of this code cat << EOF > $TSTFILE /$1/ { print "SENT" } EOF Suggestions welcome Thanks in advance (0 Replies)
Discussion started by: trichyselva
0 Replies

7. UNIX for Dummies Questions & Answers

string operation

I am trying to ask for full name in a script, Then echo back to the user with the surname only, omitting the first name. Thanks (2 Replies)
Discussion started by: orjnet
2 Replies

8. Shell Programming and Scripting

String Operation

/home8/mc09ats/UnixCw/file4 this is the path...i have 2 variables filename and filepath...i want filename=file4 filepath=/home8/mc09ats/UnixCw i.e. i think i have to find last occurence of "/" in string and the string after "/" want to take in some variable and string before last "/"... (4 Replies)
Discussion started by: AbhijitIT
4 Replies

9. Shell Programming and Scripting

Column operation : cosne and sine operation

I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file . file.txt 900.00000 1 1 1 500.00000 500.00000 100000.000 4 4 1.45257346E-07 899.10834 ... (4 Replies)
Discussion started by: shashi792
4 Replies

10. UNIX for Dummies Questions & Answers

Lftp operation

dear all, I need to get files from ftp when only files consist of words 'EUROPE' ftp sources in folder /ftp1/ftp2/ftp3/201409 files inside /ftp1/ftp2/ftp3/201409is as below 201409_EUROPE_citizen.txt 201409_EUROPE_natality.txt 201409_EUROPE_occupancy.txt 201409_ASIA_citizen.txt... (1 Reply)
Discussion started by: radius
1 Replies
aio_write(2)							System Calls Manual						      aio_write(2)

NAME
aio_write() - start asynchronous write operation SYNOPSIS
DESCRIPTION
The function allows the calling process to perform an asynchronous write to a previously opened file. The function call returns when the write operation has been enqueued for processing. At this point, processing of the write operation may proceed concurrently with execution of the calling process or thread. If an error condition is detected that prevents the write request from being enqueued, returns and sets to indicate the cause of the fail- ure. Once the write operation has been successfully enqueued, an and function referencing the referred to by aiocbp must be used to deter- mine its status and any error conditions, including those normally reported by The request remains enqueued and consumes process and system resources until is called. The function allows the calling process to write to the file associated with from the buffer pointed to by The priority of the write opera- tion is reduced by the value of which must be a value between 0 (zero) and a maximum value which can be obtained using the call with the argument A value of 0 (zero) yields no reduction in priority. The field is ignored. When the flag is not set for the file, the write operation takes place at the absolute position in the file given by as if were called immediately prior to the operation with equal to and set to When the flag is set for the file, is ignored, and asynchronous write opera- tions append to the file in the same order as the requests were enqueued. The value of the file offset is never changed by asynchronous I/O operations. Deallocating or altering the contents of memory referred to by while an asynchronous write operation is outstanding (i.e. before has been called) may produce unpredictable results. If is a valid signal event structure, then the designated signal will be delivered when the requested asynchronous write operation com- pletes. To use this function, link in the realtime library by specifying on the compiler or linker command line. RETURN VALUE
returns the following values: Successful completion, the operation has been enqueued. Failure. The requested operation was not enqueued. is set to indicate the error. The return value from reflects the success or failure of enqueuing the requested write operation for asynchronous processing. fails if an error in the function call is immediately detected, or if system resource limits prevent the request from being enqueued. All other error conditions are reported asynchronously and must be retrieved with and ERRORS
If detects one of the following error conditions, is set to the indicated value: The request could not be queued either because of a resource shortage or because the per-process or system-wide limit on asynchronous I/O operations or asynchronous threads would have been exceeded. The aiocbp is already in use for another asynchronous I/O operation. Once the write request has been enqueued by the following errors, in addition to all of the errors normally reported by the function, may be reported asynchronously by a subsequent call to or referencing its The was not a valid file descriptor open for writing. The is not a valid address in the process virtual address space. The parameters of the indicated in are invalid. The value of is not valid. The value of is invalid. The file offset implied by or are not valid for the file at the time the request is processed. The write operation was canceled due to a subsequent call to referencing the same that was used to start the operation. EXAMPLES
The following code sequence and call to starts an asynchronous write operation. SEE ALSO
aio_cancel(2), aio_error(2), aio_fsync(2), aio_read(2), aio_return(2), aio_suspend(2), lio_listio(2), write(2), aio(5). STANDARDS CONFORMANCE
aio_write(2)
All times are GMT -4. The time now is 03:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy