Search Results

Search: Posts Made By: akil
3,582
Posted By akil
Hi , I have tried with python json library,but...
Hi ,
I have tried with python json library,but getting the following error

Traceback (most recent call last):
File "a11.py", line 4, in <module>
data = json.load(data_file)
File...
3,582
Posted By akil
Hi , When extracting data from API,there are 2...
Hi ,
When extracting data from API,there are 2 nested groups having same group name [group:url,title and item with different values].I want to merge these 2 nested groups to 1 or individual nested...
3,191
Posted By akil
Thanks Aia,working fine
Thanks Aia,working fine
3,191
Posted By akil
When trying to execute ,getting the following...
When trying to execute ,getting the following error message

import json
data = json.loads("/xx/sites_extract_1.json")
print("ORIGINAL json")
print(some_json_string)

for a in...
3,191
Posted By akil
Remove lines from multiline json
Hi ,
When extracting the data from API end point ,its giving multi line json .I want to remove certain lines with
group": "tag" or tget and respect "item" values [only want to keep group": "url...
3,582
Posted By akil
Shell script inputs to python
Hi
I am trying to pass 2 input parameters from shell script to python API end point ,but not passing what i expected when print those inputs .Please advise


data.txt

" 7554317" ,xx5e1
"...
1,863
Posted By akil
additions
Hi

I have a decimal number and want to add to 1 to Firstnumber ,2 to 2nd number .Please any one help

I/p

10000.0000
20000.00

Expecting o/p

10001.000
200002.00



Regards,
Akil
1,678
Posted By akil
format mismatches
Hi

I am spooling the table values in file in unix ,but the problem is date format in table 'dd/mm/yyyy' ,when strong into file 'dd-mon-yyyy'.I want the same format to loaded into files also.Any...
3,725
Posted By akil
Hi I want to add connection parameter value in...
Hi
I want to add connection parameter value in each entry


[a.s1.txt]
conn1=stg
conn2=dev
path=\xxx\a1.txt
fre=a
[a.s2.txt]
conn1=stg
conn2=dev
path=\xxx\a2.txt
freq=a

EXPECTING...
1,506
Posted By akil
Not matching files
Hi
I need to check list of files aganinst a.txt and return those files which are not available in a.txt


ls -lrt

file1.txt
file2.txt
file3.txt


a.txt
=====
file1.txt
file2.txt
...
3,725
Posted By akil
Hi Its workin fine.Thanks for your help ...
Hi
Its workin fine.Thanks for your help

Thanks,
Akil
3,725
Posted By akil
Hi Thanks,Its working fine Akil ...
Hi
Thanks,Its working fine


Akil

---------- Post updated at 02:16 AM ---------- Previous update was at 02:09 AM ----------

Hi
Sorry ,I have got the below error when call this

awk...
3,725
Posted By akil
convert rows to single row
Hi
I want to convert multiple rows ro single row ,I have tried with below one but I am not getting what I am expecting.Please any idea

a.txt

[a.s1.txt]
conn1=stg
conn2=dev...
1,637
Posted By akil
Hi , Sorry for not explained properely 3...
Hi ,
Sorry for not explained properely

3 indicator files are comming from 3 different remote server ,they will come at any time once those related files from reomte server push to my local...
1,637
Posted By akil
Hi , Thanks for your replay.I need to check for...
Hi ,
Thanks for your replay.I need to check for this file first whichever file comes at that path and then check for another file so and so.....

file1.txt
file2.xt
file3.txt

ex:If file2.ext...
1,637
Posted By akil
while loop
I have scnerio like this ,the below files comming from remote server
It has to do infinete loop till all files arrives i.e.
if first file "file1.txt" arrives then copy files1 related to another...
4,039
Posted By akil
Hi When try this I am getting the below error ...
Hi
When try this I am getting the below error

awk2.sh xx a.txt b.txt


syntax error The source line is 1.
The error context is
>>> BEGIN <<<
awk: Quitting
The source...
4,039
Posted By akil
When passing ,i was getting the below error ...
When passing ,i was getting the below error

param =$1
file1 =$2
file2 =$3
awk BEGIN { FS="|" } FNR==NR { f1[$1]=$2; next } $1 in f1 && $2 =="$param" && $1 == "DAILY_JOB" {print $3} $file1...
4,039
Posted By akil
passing parameters using awk
Hi,
The below script is working fine

awk1.sh
=======
awk BEGIN { FS="|" } FNR==NR { f1[$1]=$2; next } $1 in f1 && $2 =="xx" && $1 == "DAILY_JOB" {print $3}

awk -f awk1.sh a.txt...
4,770
Posted By akil
Hi , Please help on the below scnerio,I have...
Hi ,
Please help on the below scnerio,I have take 1st column from a.txt and compare against b.txt ,if matches ,display the below o/p

a.txt
20080710|20080711


b.txt

20070708
20070709...
4,770
Posted By akil
Hi , Thanks for your prompt reply Thanks...
Hi ,
Thanks for your prompt reply

Thanks & Regards,
Akil
4,770
Posted By akil
joining files based on key column
Hi

I have to join two files based on 1st column where 4th column of a2.txt=at and take 2nd column of a1.txt and 3rd column of a2.txt and check against source files ,if matches list those source...
6,413
Posted By akil
Hi KevinADC, I have corrected ,thanks a lot ...
Hi KevinADC,
I have corrected ,thanks a lot

Thanks,
Akil
6,413
Posted By akil
Hi KevinADC Thanks for your great help.Its...
Hi KevinADC
Thanks for your great help.Its workinf fine.

Thanks,
Akil
6,413
Posted By akil
Thanks for your reply ,when executing ,its...
Thanks for your reply ,when executing ,its througing the below error.

perl a6.sh 20060708 05:32:11

syntax error at a6.sh line 5, near ")
my "
Execution of a6.sh aborted due to compilation...
Showing results 1 to 25 of 58

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