Search Results

Search: Posts Made By: chetanojha
1,024
Posted By chetanojha
Thanks Anbu23 for quick reply. The command sent...
Thanks Anbu23 for quick reply. The command sent by you is working.



But what is the difference between below two?


file_path=${output_dir}

files_list=`ls...
1,024
Posted By chetanojha
Expand Variables and Wildcards into another variable.
Dear Forum members,


I am having trouble getting the complete filename (and directory path) in a variable.



Output directory mentioned in the code have three files:
...
2,431
Posted By chetanojha
Not at all Don. Here is the code... i am trying...
Not at all Don. Here is the code... i am trying to execute. The requirement is same just different fields and row numbers.

Getting the city : LONDON

var1=`awk 'FNR=NR {print $2}' FS=, file2 |...
2,431
Posted By chetanojha
Can the above code from RudiC be modified to...
Can the above code from RudiC be modified to cater to below file2 as well?

file1:
LONDON:5500
NEWYORK:4500
AMSTERDAM:3500

file2:

"MKTG",LONDON,"EXPENSE",20160606,20160606,5000...
2,431
Posted By chetanojha
Hello Aia,RudiC, Yes this code works find to...
Hello Aia,RudiC,

Yes this code works find to update file2. Hope can I update the file1 with the increase count ?

E.g. Since we have updated file2 to
Sale|11|London|3|28022018
Approval|11
...
2,431
Posted By chetanojha
Dear RudiC, Aia, This is working perfectly...
Dear RudiC, Aia,

This is working perfectly well ...

Thanks a lot.

---------- Post updated at 05:07 PM ---------- Previous update was at 04:57 PM ----------

Is there any chance/way that we...
2,431
Posted By chetanojha
Hi... No. It will always be like below each...
Hi...

No. It will always be like below each city. One file per city.

Sale|3|London|3|28022018
Approval|3
Agent1|12|abc|abc|
Agent2|12|abc|abc|
Agent3|12|abc|abc|
Final|3|All_Total

...
2,431
Posted By chetanojha
Hi Aia, RudiC, I have two files as below: ...
Hi Aia, RudiC,

I have two files as below:

File1:

London:10
NewYork:4
Dubai:3
Manchester:12

File2:

Sale|3|London|3|28022018
Approval|3
Agent1|12|abc|abc|
Agent2|12|abc|abc|...
2,431
Posted By chetanojha
Replace field in the delimited file
Hi,

I have the requirement similar to the one mentioned in the below thread.
...
1,212
Posted By chetanojha
Dear Team Members, I have a unique problem....
Dear Team Members,

I have a unique problem. Below is the dataset which I have. I am writing a script which will read through the file and pull the invoice no. (Field 2 of C1 row).
...
1,212
Posted By chetanojha
Multiple Parameter search script - OLD Post
Dear Forum Member,
Hope you are well. I am sending this email to your reply to one of my post in the forum. I raised an help request from all of you regarding an issue I was facing. The original...
2,072
Posted By chetanojha
Hi Ravinder, Both worked well on command...
Hi Ravinder,

Both worked well on command line. But i am trying to write the content back to file where I do not see any chances.

I am trying below.

awk '{gsub(/\r/,"");print}' Input_file ...
2,072
Posted By chetanojha
Dear All, Yes this works fine. AWK command...
Dear All,

Yes this works fine. AWK command has done the job for me. I need to know now is how can i add this output to a file.

I ran below which brings the required result in the variable.
...
2,072
Posted By chetanojha
How to remove part of the line from start of the line?
Hello,

I am java command from a shell script which will generate the below output on the command prompt


signature Base64 :...
1,008
Posted By chetanojha
Hi Rudi, Basically it only means that...
Hi Rudi,

Basically it only means that insert a first line of signature in the main_file.txt file. Actually I was thinking it loud to make it simple for myself.
1,008
Posted By chetanojha
Script to access multiple file and operate on single file
We have three files as mentioned below:
1. main_file.txt: This is the file in which all operations will be done. Which means this file will be signed by using the below two files
2....
2,226
Posted By chetanojha
Hi, For don's script.. no matter which string...
Hi,
For don's script.. no matter which string I passed i am getting info about only first invoice as shown bellows

./script.sh PIRELLI HYUNDAI


Output is as below


990001...
2,226
Posted By chetanojha
For Don's script, it is always returning the...
For Don's script, it is always returning the first invoice numbers instead of respective invoice number.

So for below dataset

...
2,226
Posted By chetanojha
Hello Don, I am not able to run this...
Hello Don,

I am not able to run this script. It says cannot open the -dataset.

Other Few questions:
1. How do I pass multiple files? So that this script can look into multiple files...
2,226
Posted By chetanojha
I have now corrected the calling of script. ...
I have now corrected the calling of script.

./findInvoice.sh MICHELIN
or
./findInvoice.sh PIRELLIAbove is the correct one
2,226
Posted By chetanojha
CSV File with Multiple Search Parameter
Dear Team Members,

I have a unique problem. Below is the dataset which I have. I am writing a script which will read through the file and pull the invoice no. (Field 2 of C1 row).

...
984
Posted By chetanojha
Can't believe i wasted whole day to figure it...
Can't believe i wasted whole day to figure it out. Thanks a lot
984
Posted By chetanojha
Variable in awk command
Hello All,

I am trying to run a script to extract data from the file. The format of the file is as below:
filename: sample.log

12345| ABCD
23456| GKHY
33454| ABCD
98765| TTRRI want to run...
691
Posted By chetanojha
Read from file and split varialble
Hello Experts,

Can anybody assist me in writing a code to do the following:

I have a file present in the same directory from where this cod would run. The content of the file would be as below:...
1,189
Posted By chetanojha
Read Lines from One file.. and create another.. and
Hello Members,

I have one file which contains million of supplier code. I need to load these codes into database 1000 at a time.
Database procedure reads from an external table which is based on...
Showing results 1 to 25 of 33

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