Search Results

Search: Posts Made By: anijan
Forum: Programming 04-18-2018
995
Posted By anijan
@Don Cragun.. You were right.! the math.h...
@Don Cragun..
You were right.!

the math.h was not visible which was causing conversion issues.

It works fine now.

Thanks.!
Forum: Programming 04-18-2018
995
Posted By anijan
Round floor behavior
Hello,

My round and floor functions in C program behaves weird. Can someone help resolve the issue..


fprintf( fp, "ROUND TEST VARIABLE 11686776.000000 %d\n", round(11686776.000000));
...
2,182
Posted By anijan
Search for words starting and ending with
im trying to search for a WORD in a file which
begins with a number
followed by a hypen
follwed multiple words
and end with a dot "."
and pront the entire line which matches the above.
...
Forum: Programming 01-12-2017
938
Posted By anijan
If else block C code
Hi,

We have hundreds of c codes for which we need to identify and analyse all the if , nested if and while conditions used in code.. is thr any tool to do that. All we is like index (like 1.2.1.3...
2,887
Posted By anijan
the command doesn work ...
the command doesn work

/home/devdbg2/uat_report>od -Ax -tx1z county_list
od: Invalid argument for -t option
/home/devdbg2/uat_report>
2,887
Posted By anijan
Here it is: done <county_list + 0<...
Here it is:


done <county_list
+ 0< county_list
+ read county_code county_name usr_nm passwd domain
+ IFS=|
+ echo Connecting to county 1
Connecting to county 1
+...
2,887
Posted By anijan
when i give a newline at the end of county_list...
when i give a newline at the end of county_list file, the output is as follows:


/home/devdbg2/uat_report>./UAT_usr_login_report.sh
Connecting to county 1
PRINTING STATUS 0
SEARCHING FOR ERROR...
2,887
Posted By anijan
Thank you both of you for your inputs. sorry...
Thank you both of you for your inputs.

sorry to mention that the solution you gave is not working for me.

I tried using continue command in two ways, one as mentioned by you, and the other by...
2,887
Posted By anijan
Problem in connecting to db in a loop
Im trying to run a query in multiple db thro sqlplus in a loop written n shell script. whenevr there is a problem in connecting to db, the shell script abruptly exits. My requirement is , when db...
2,055
Posted By anijan
Thx @Scrutinizer. it works perfectly fine with ur...
Thx @Scrutinizer. it works perfectly fine with ur solution. There is one more problem with mailx command. the email body.

Either the attachment is missing or the email body is missing. I tried the...
2,055
Posted By anijan
Mailx command issue
Hi All,

Im facing a problem with sending tar file via mailx command. Your help would be much appreciated.

Im trying to tar a set of CSV files in a folder using the below command

tar cvf...
946
Posted By anijan
Thank you Dave, Robin and RudiC. All your inputs...
Thank you Dave, Robin and RudiC. All your inputs were very useful. I was able to achieve my output with comm and awk commands..!
946
Posted By anijan
Compare files
Hello all,

I have two files pdflist and xmllist like the one below:

Content of pdflist:a.pdf
b.pdf
d.pdf
Content of xmllist:a.xml
b.xml
c.xml


In the above list, d.pdf is not having...
17,794
Posted By anijan
Issue with Connect direct ndmcli
Hi..

We are using connect direct to transfer the files between servers. The CD scripts run on HP UX.

Below is the code using ndmcli.


ndmcli -x << EOJ
submit maxdelay=0 proc1 process ...
1,799
Posted By anijan
@Carlo the my response was for @Srini's input. Im...
@Carlo the my response was for @Srini's input. Im yetto chk out your solution.. will get back in few mins.. Thx for the response..!
1,799
Posted By anijan
No it is not working.
No it is not working.
1,799
Posted By anijan
Issue with IF condition
Getting syntax error when the condition after -o returns more than one file


if [ -f /usr3/tstsrc/test/anitha/*.done -o -f /usr3/tstsrc/test/anitha/*.zip ]
then
echo "Found"
fi


output:
...
1,221
Posted By anijan
Splitting file using awk
I have file with below content

FG1620000|20000
FG1623000|23000
FG1625000|25000
FG1643894|43894
FG1643895|43895
FG1643896|43896
FG1643897|43897
FG1643898|43898
My aim is to split the above...
2,120
Posted By anijan
The file time stamp might vary. The requirement...
The file time stamp might vary. The requirement is sort only based on the file name,.
2,120
Posted By anijan
Sorting file based on name
Hi team,

We have few files landing to our server based on sequence number. These files have to be processed in the sequence number order. Once the sequence number has reached its maximum, the...
31,174
Posted By anijan
RahulJoshi, ur code will not handle...
RahulJoshi,

ur code will not handle embedded quotes and commas and files with no data (i.e "hi",,,"hello")
31,174
Posted By anijan
From my unix shell how do i check whether...
From my unix shell how do i check whether Text::CSV is installed or not.?
31,174
Posted By anijan
Hi, radoulov perl script was exactly the...
Hi,

radoulov perl script was exactly the one which i was looking for.
But when i tried running from my AIX unix box, im getting some error
cpan file is loacted in the below path
...
31,174
Posted By anijan
thanks for the updates.. But this doesn seem to...
thanks for the updates.. But this doesn seem to work.. Please try the solution with the below data.
...
31,174
Posted By anijan
this will replace the comma in the substring with...
this will replace the comma in the substring with pipe

i.e 1234,"test,file" will be replaced as 1234|test|file
Showing results 1 to 25 of 40

 
All times are GMT -4. The time now is 03:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy