Search Results

Search: Posts Made By: Prathmesh
4,408
Posted By Prathmesh
Thanks for your reply. Can you please explain...
Thanks for your reply.
Can you please explain how this approach works for me? I am having difficulty in understanding it.
4,408
Posted By Prathmesh
Thanks RudiC. This worked perfectly well.
Thanks RudiC. This worked perfectly well.
4,408
Posted By Prathmesh
Remove newline character from column spread over multiple lines in a file
Hi,

I came across one issue recently where output from one of the columns of the table from where i am creating input file has newline characters hence, record in the file is spread over multiple...
4,504
Posted By Prathmesh
Thank you so much RudiC for your valuable time...
Thank you so much RudiC for your valuable time and help. Solution works perfectly fine.
4,504
Posted By Prathmesh
Thanks RudiC. Adding new fields at the end will...
Thanks RudiC. Adding new fields at the end will work too.
But, I am not getting desired output for below input -

$ cat RECORD...
4,504
Posted By Prathmesh
Hi RudiC, Let me explain why and what I am...
Hi RudiC,

Let me explain why and what I am looking exactly.

For input file RECORD, earlier code provided by you provides below output -

Input File -

$ cat RECORD...
4,504
Posted By Prathmesh
Thanks RudiC. This works perfectly well for me. ...
Thanks RudiC. This works perfectly well for me.
If I can ask for one more thing that arise with this result. Now, with the same three input files RECORD, date_format.csv and timestamp_format.csv, I...
4,504
Posted By Prathmesh
Thanks RudiC. This is very close, I will try to...
Thanks RudiC. This is very close, I will try to build on your solution and see how I can use it.
Only difference is I want same number of "." characters as in YYYYMMDD, YYMMDD or HHMISS.

So,...
4,504
Posted By Prathmesh
Thanks for your help. I will try this out and see...
Thanks for your help. I will try this out and see how it goes.
4,504
Posted By Prathmesh
Thanks Ravinder for your attention. ...
Thanks Ravinder for your attention.

Basically, I have below pipe delimited record as an input in which column 4 has the filename as received on the source side and column 5 has the filename...
4,504
Posted By Prathmesh
Extract date and time part from filename
Hi,

I am facing one scenario in which I need to extract exact position of date and time from the name of the files. For example, Below is the record in which I need to extract position of...
1,265
Posted By Prathmesh
Yes. Pipe is delimiter. And tags may or may not...
Yes. Pipe is delimiter. And tags may or may not be in field 8 or higher.

Sent from my Nexus 5 using Tapatalk

---------- Post updated at 12:37 AM ---------- Previous update was at 12:36 AM...
1,265
Posted By Prathmesh
Thanks Robin for your reply. This is not...
Thanks Robin for your reply.

This is not assignment problem. My OS is GNU/Linux and I prefer to use Shell script/AWK.

I am thinking of listing all possible tags in one file Tags.txt , then...
1,265
Posted By Prathmesh
Sorting/Arranging file based on tags using awk
Hi,

I have file which contains data based on tags. Output of the file should be in order of tags.

Below are the files :

Tags.txt

f12
f13
f23
f45
f56


Original data is like this :...
3,702
Posted By Prathmesh
Thanks for very good explanation.
Thanks for very good explanation.
3,702
Posted By Prathmesh
Thanks a lot. Can you please explain the code so...
Thanks a lot. Can you please explain the code so that, it will be easier to understand.
3,702
Posted By Prathmesh
Thanks. But, Second line of the output seems to...
Thanks. But, Second line of the output seems to be wrong. Output should be as follows:

11|101.02693|1|20151202|1026.3204|20151127|N|0001
11|-201.00142|2|20151202|-2141.1783|20151127|3|0005
3,702
Posted By Prathmesh
Using awk to place decimal points at proper position
Hi,

I have one input file which is delimited by pipe. I want to put decimal points in this input file at particular position in particular column and also get the negative sign (if any) at start...
2,354
Posted By Prathmesh
Thanks. I will go through it and let you know in...
Thanks. I will go through it and let you know in case of any doubt.

---------- Post updated at 08:54 PM ---------- Previous update was at 08:50 PM ----------



Thanks. Can you please explain...
2,354
Posted By Prathmesh
Thanks Ravinder. Your code is working fine. But,...
Thanks Ravinder. Your code is working fine. But, Can you please explain what it does exactly to understand it better.
2,354
Posted By Prathmesh
Delimit file based on character length using awk
Hi,

I need help with one problem, I came across recently.

I have one input file which I need to delimit based on character length.


$ cat Input.txt
12345sda231453
asd760kjol62569...
17,343
Posted By Prathmesh
Thanks. Script works well. When searched...
Thanks. Script works well.

When searched more, I found out that instead of using %d option of date, if we use %e it works well.

Please find below modified script:

#!/bin/bash

YEAR=2015...
17,343
Posted By Prathmesh
Thanks RudiC. Can you please advise how are you...
Thanks RudiC.
Can you please advise how are you coming up with the value 10 in below code? Basically, I want to understand the thought process while selecting the value, so the logic will be clear...
17,343
Posted By Prathmesh
Thanks. Although my shell does not support it. It...
Thanks. Although my shell does not support it. It is good thing to know.

---------- Post updated at 09:26 PM ---------- Previous update was at 09:19 PM ----------



Hi Robin,

I had...
17,343
Posted By Prathmesh
Ok. Understood, Thanks.
Ok. Understood, Thanks.
Showing results 1 to 25 of 43

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