Search Results

Search: Posts Made By: rakeshtomar82
1,527
Posted By rakeshtomar82
Working code is : cat tst.awk {...
Working code is :


cat tst.awk { split($2,a,/\./); curr = a[1]*10000 + a[2]*100 + a[3] } NR==FNR { prev[$1] = curr; next } !($1 in prev) || (curr > prev[$1]) $ /usr/bin/nawk -f tst.awk...
1,527
Posted By rakeshtomar82
My awk code working :) :)
My awk code working :) :)
1,527
Posted By rakeshtomar82
I tried to write awk code but its not giving the...
I tried to write awk code but its not giving the o/p which is required.



cat tst.awk
{ split($2,a,/\./); curr = a[1]*10000 + a[2]*100 + a[3] }
NR==FNR { prev[$1] = curr; next }
!($1 in...
1,527
Posted By rakeshtomar82
UNIX file comparison
I have two files which has component name and version number separated by a space


cat file1
com.acc.invm:FNS_PROD 94.0.5
com.acc.invm:FNS_TEST_DCCC_Mangment 94.1.6 ...
1,525
Posted By rakeshtomar82
No luck this time also :( /usr/bin/nawk '...
No luck this time also :(


/usr/bin/nawk '
> FNR==NR {split ($2, T, ".")
> VN[$1]=T[1]*10000+T[2]*100+T[3]
> next
> }
> ...
1,525
Posted By rakeshtomar82
d2xxxx@hXXX17$ cat file1 com.acc.invm:FNS_PROD...
d2xxxx@hXXX17$ cat file1
com.acc.invm:FNS_PROD [94.0.5]
com.acc.invm:FNS_TEST_DCCC_Mangment [94.1.6]
com.acc.invm:FNS_APIPlat_BDMap [100.0.9]
com.acc.invm:SendEmail [29.6.113]...
1,525
Posted By rakeshtomar82
thanks, but its only printing ...
thanks, but its only printing

com.acc.invm:SendEmail [29.6.113]
com.acc.invm:SendSms [12.23.65]
1,525
Posted By rakeshtomar82
not working :( awk: syntax error near line 10 ...
not working :(
awk: syntax error near line 10
awk: bailing out near line 10
1,525
Posted By rakeshtomar82
while read line do var=`echo $line ` ...
while read line do var=`echo $line ` grep "$var" file2 >> /dev/null if [ $? -eq 0 ] then grep "$var" file2 >> present else echo " $line missing " > missing fi done <...
1,525
Posted By rakeshtomar82
File compare in UNIX
I have two files which is having components and its version inside that,

cat file1
com.acc.invm:FNS_PROD [94.0.5]
com.acc.invm:FNS_TEST_DCCC_Mangment [94.1.6]
com.acc.invm:FNS_APIPlat_BDMap...
4,272
Posted By rakeshtomar82
Passing Username & password through shell script to java code
Hi,

I have a shell script (script.sh) in which we are calling java code which asks for
Username:
Password:
for authentication purpose

currently we are passing the credential manually and...
1,223
Posted By rakeshtomar82
Thanks Aia :)
Thanks Aia :)
1,223
Posted By rakeshtomar82
Usage of shell variable in perl command
Hi,

I have a shell script, In which i have variable "var1" and some perl command inside shell script.

export var1='coep -n rst-a2p-hinje.vci.all.com -c'
perl -pi -e 's/^/coep -n ...
3,670
Posted By rakeshtomar82
Print multiple lines on one line
Hi All,

I have a file looks like:

rst:singh:99.0.20-X86 2 rst:ACSI_SIN_SERVICES
rst:singh:99.0.20-X86 2 rst:ACSI_BISI want to wrap 3rd col in one line and add variable value at start and...
2,497
Posted By rakeshtomar82
Curl command
Hi All,

I am using below curl commad and getting output data correctly

curl -k -u AASSDD:PPOOII -d "output_mode=csv" --data-urlencode search='search source=*/AASSDDFF/PPOOLLKK**/94.0*ASD-RST*...
3,949
Posted By rakeshtomar82
Passing Shell variable from file to another command
Hi all,
I have a file looks like
AAAA 111
BBBB 222
CCCC 333

need to pass variable value like var1=AAAA and var2=111
to another command for three times with next values.

stuck over here
...
34,966
Posted By rakeshtomar82
Thanx for your reply.......but can you pls give...
Thanx for your reply.......but can you pls give me the both on into one script.
1,504
Posted By rakeshtomar82
set only some command & scripts permission to a particular user
hi,

i am new in unix.......i am using bash and i want to create a user which has only some command and scripts permission.........is it possible?

thanx
1,254
Posted By rakeshtomar82
Thanx......its working :)
Thanx......its working :)
1,254
Posted By rakeshtomar82
if else
Hi,
i am trying to write a scripts in bash......if own is right or wrong then it should echo valid and if i pass any other then that......then it should echo invalid.

pls help
my code is ----
...
4,778
Posted By rakeshtomar82
Display files created on particular date & time
Hi , I have BASH system & i am trying to display the files created on a particular date and time, and after displaying those files I also want to delete all those files.Can anyone of you help me out...
2,363
Posted By rakeshtomar82
i used first code which giving an error `<' is...
i used first code which giving an error
`<' is not expected.
in this line
read "VAR${C}" <<<$"LINE"
2,363
Posted By rakeshtomar82
thanx for ur reply but i hv tried...
thanx for ur reply but i hv tried this................
export line1=`sed -n '1p' details.txt`
export line2=`sed -n '2p' details.txt`
export line3=`sed -n '3p' details.txt`
export line4=`sed -n...
2,363
Posted By rakeshtomar82
i want to use those variable as an input to...
i want to use those variable as an input to further part...............
2,363
Posted By rakeshtomar82
Creating variable by for loop
i have a file 'detail' which contains
cat detail
111111
222222
333333
444444
but detail may be 4 line file.6 line file or 8 line file like
cat detail
111111
222222
333333
444444
555555...
Showing results 1 to 25 of 25

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