Search Results

Search: Posts Made By: Ganesh Khandare
1,624
Posted By Ganesh Khandare
Ok for the following script need status
Hi,
I dont need message to be print over there, need to exit the script if the file has error. i am putting my script below.
-> if i execute the script if the file has error it will go to if(n!=v1)...
1,624
Posted By Ganesh Khandare
Sorry its wont work,noeed something else
Hi, As you said its ok ,but this is only one script . i am using two awk commands in one bash shell script. i am running script like
./script name.sh param1 param2

Here i am executing single...
1,624
Posted By Ganesh Khandare
awk script problem
Hi,
How to check status of the files in the awk script
i am having two awk script in one bash script.Like
-BELOW is the exact structure of the script
script name: new.sh
{
awk -v v1=`.....`
{...
Forum: Programming 10-19-2010
2,091
Posted By Ganesh Khandare
Thanks,but need code for it
Hi Thanks for reply,
But could you give me some code regarding that it will be more helpfull for me.
Forum: Programming 10-19-2010
2,091
Posted By Ganesh Khandare
need logic for java program
Hi All,
I need to to wright a java programm for the following query.
Qus: output need to genarate a number+ alphnumric sequence in java and get converted into ASCII code so that i can use mod...
19,801
Posted By Ganesh Khandare
Could you plseae check for this script!
Hi Pravin,
Thanks for reply,you solution is working fine but could you give me some modification on my scritp. just have a look on that Actually i am not be able to modify my script. i am using...
19,801
Posted By Ganesh Khandare
Count '~' but not "~" this in awk?
Thanks Bakunin,
But i have an different question Could you pleaase check my once again, Actually in my above question the whole script is in awk script. i want to do this grep command and count for...
19,801
Posted By Ganesh Khandare
How to ignore delimiters inside the quotes?
Hi Experts,
How to ignore any delimiters which is inside the quotes. in awk script.
I am having script which counts number of delimiters from the line now i need count delimiters only separators ....
7,611
Posted By Ganesh Khandare
How to ignore delimiter between the quotes?
Hi Guys,
I have following script which counts number of tilde in file but i want to count tilde which are field saparator.but my script count tilde between word also what i need is if line is like...
2,817
Posted By Ganesh Khandare
Sample of Properties file and filename
Hi,
The sample of property file is
file name: Validation.properties

INTELLECT_EUR_DEAL_HANDOFFS=/cdirect/rtrupld/incoming/intellect/INTELLECT_EUR_MMRTRDEALS*.txt...
2,817
Posted By Ganesh Khandare
How to take input from user or awk script?
Hi Jim,
I have following script,i which i need to take dynamic value .
script,
nawk -v v1=grep"INT_EUR" $propertifilename | cut -d"=" -F2` -F'~' '{if (NF-1 !=v1)
{print "Error in " $0 " at line...
5,745
Posted By Ganesh Khandare
Workin if i use nawk
Hi Pravin,
Thanks for quick reply,
yes its working if i use "nawk" insted of "awk" but i have one more problem , As you see in properties file around 8 constants are there.
example....
5,745
Posted By Ganesh Khandare
Its giving following error
Hi Pravin,
Its giving an error like

awk: syntax error near line 1
awk: bailing out near line 1

And what about my awk script no need to use.Also is this script scan 50 thousand records in 1...
5,745
Posted By Ganesh Khandare
Thanks for Reply,But i need something different
Sorry All to disturb you again.
May be i m checking wrong. i need somthing like that.

I am using propety file as HandofValidation.property file which contains following data like

--The...
5,745
Posted By Ganesh Khandare
Thanks but required more specific script which can be use in my awk script.
Hi Pravin,
Could you check my script i put it into forum. according to your solution i used above the my awk command. but it wont work. If you are online could you please send me that hardcodede...
5,745
Posted By Ganesh Khandare
Data in count.txt file
Hi fpmurphy ,
Thanks for your response,

count.txt file contains following data,

INTELLECT~JP~111~0~A~2jp10212991~RR~~~~~~~~~~~~~~~
INTELLECT~JP~111~0~A~2jp10212991~RR~~~~~~~~~~~~~~~...
1,342
Posted By Ganesh Khandare
Solution required for awk script
Hi Jim,

The following script is in working state. But i m having one more problem with awk cmd. Could you tell me how to use any variable inside awk or how to take any variable value outside awk....
1,022
Posted By Ganesh Khandare
Please guide on awk script...
Hi All,
by running this script its working correct for 3rd awk body but i am not be able to take
"INTELLECT_NY_DEAL_FLD_COUNT=51;" this value inseide the awk.Actually i want to check whether...
5,745
Posted By Ganesh Khandare
How to use same variable value inside as well as outside of the awk command?
Hi Jim,

The following script is in working state. But i m having one more problem with awk cmd. Could you tell me how to use any variable inside awk or how to take any variable value outside awk....
9,678
Posted By Ganesh Khandare
Need something more in this script
Hi Jim,
Thanks your script is working fine.But i have one more problem like. your script every time goes into else loop. eve if oldsum is not eqal to sum then also its giving an error in count. i am...
9,678
Posted By Ganesh Khandare
Shell script to count number of ~ from each line and compare with next line
Hi,
I have created one shell script in which it will count number of "~" tilda charactors from each line of the file.But the problem is that i need to count each line count individually, that...
3,674
Posted By Ganesh Khandare
Hi, I have created one shell script in which...
Hi,

I have created one shell script in which it will count number of "~" tilda charactors from each line of the file.But the problem is that i need to count each line count individually, that...
Showing results 1 to 22 of 22

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