Search Results

Search: Posts Made By: dsfreddie
5,413
Posted By dsfreddie
Hi Binlib, The Single quotes didnt work...
Hi Binlib,

The Single quotes didnt work either.



Error Msg :


Any other thoughts will be greatly appreciated.

Thanks - Freddie
5,413
Posted By dsfreddie
Linux Platform - NDM Script - && Operator
Hi All,

I have a requirement where i need to NDM 3 files from LINUX to Mainframe system & trigger a job in mainframe once the 3 files are transmitted successfully.

I am getting an error...
869
Posted By dsfreddie
Thanks @vgersh99 & @in2nix4life, both worked...
Thanks @vgersh99 & @in2nix4life, both worked fine:b:

Wondering what we should do to get the last 2 words(before the .) in the output,

ie CTA_DLY

i tried modifying the same commands, but...
869
Posted By dsfreddie
Linux command to output from a string
Hi All,

I have a file with name
Is there a LINUX command that will help me to output the word after the 9th Underscore(_).
ie the output should be DLY in this case.

Can anybody pls help...
4,193
Posted By dsfreddie
LINUX ---> Add one date to a date variable
Hi All,

I am trying to add one day to the busdt variable i am extracting from a file (DynamicParam.env). I am deriving the busdt as below.



Is there any function which I can use to derive...
1,583
Posted By dsfreddie
Thanks Methyl for your reply.:) The script...
Thanks Methyl for your reply.:)

The script is Korn Shell.

The $dynbusdate value is derived from a file that contains the date value, i.e. P_BUS_DATE=20120821 for e.g

I have one more date...
1,583
Posted By dsfreddie
Hi Methyl, Thanks for your reply. ...
Hi Methyl,

Thanks for your reply.

Here is the code component which copies the 2 files from one directory to another based on 2 date ranges,

The file...
1,583
Posted By dsfreddie
Hi Methyl/Hipe, Thanks for your reply. ...
Hi Methyl/Hipe,

Thanks for your reply.

I am currently doing a ls -l command based on the date value present in the file name & writing those filenames(into file_per_chg_indx.txt) that comes...
1,510
Posted By dsfreddie
Hi Alister, I am getting a syntax error...
Hi Alister,

I am getting a syntax error message while trying to compare 2 files using the compare function (LINUX)

cmp -s <(tr , \\n (file://n/) < $COMMON_TMP/nt_per_gs.done | sort) <(tr , \\n...
1,625
Posted By dsfreddie
Hi Methyl, Pls find below the LINUX OS...
Hi Methyl,

Pls find below the LINUX OS version,



Also, i tried with #!/bin/bash. It didnt work either.

I have used the same command in another LINUX script & it works fine. Tried...
1,625
Posted By dsfreddie
Thanks Chubler for your reply. The script...
Thanks Chubler for your reply.

The script is ksh (LINUX i.e #!/bin/ksh). I could see the same commands are working in one script, but not in this one. Not able to figure out the issue (Did...
1,625
Posted By dsfreddie
Syntax Error while using CMP function
Hi All,

I am getting a syntax error message while trying to compare 2 files using the compare function (LINUX)



command substitution: line 79: syntax error near unexpected token `('...
1,583
Posted By dsfreddie
Thanks for the reply. Is there a way to...
Thanks for the reply.

Is there a way to put a validation in the linux script which will do the following,



In the below FOR Loop, is there a way to put a logic to check whether the file...
1,583
Posted By dsfreddie
Help with Logic - Copying the same files by 2 Linux scripts to same directory
Hi All,

Good Morning !

Can anyone help me understand the following scenario.

Scenario 1 : 2 LINUX Scripts(Process 1 & 2) are trying to copy the same file (lets call it FileA.txt) to the...
2,056
Posted By dsfreddie
LINUX - How to add a prefix to a set of files
Hi All,

I have a file (lets say filenames.txt) which contains a list of file names.


Is there a way I can append a prefix to the filenames as below,



Thanks much for your help...
815
Posted By dsfreddie
Thanks for the below code suggestions. I am...
Thanks for the below code suggestions. I am currently revisiting my code to put the fixes you provided.

Pls note that the dates are available in the filename itself. Can you pls let me know how...
815
Posted By dsfreddie
Help in Logic - How to move files based on a condition
Hi All,

I have 2 LINUX scripts (Lets say ScriptA & ScriptB) which copies files (lets say 'date_abc.txt , it goes to a while loop & checks for the files between 2 date varialbles) to directory X....
1,510
Posted By dsfreddie
Thanks Alister, that worked like a champ :) I am...
Thanks Alister, that worked like a champ :) I am currently testing my script after incorporating this. Will let you know the outcome...

Regards,
Freddie
1,510
Posted By dsfreddie
Thanks Allister for your reply :) Yes, the...
Thanks Allister for your reply :)

Yes, the example you gave is considered a match.

Regards,
Freddie
1,510
Posted By dsfreddie
LINUX - How to compare the values in 2 files & exit from the script
Hi All,
I have a requirement where I need to compare 2 files & if the values in the files match, it should proceed, else exit the script without proceeding further.
For e.g : Scenario 1
In this...
821
Posted By dsfreddie
How to get the dates from a list of file names?
Hi All,

I have a .txt file with the list of filenames as given below.


/dev_data/dev3/ctl/20120622_Employee.txt
/dev_data/dev3/ctl/20120623_Employee.txt...
7,850
Posted By dsfreddie
Thank You Clx :) I will try the command & let you...
Thank You Clx :) I will try the command & let you know.

Let me explain my 2nd requirement. Lets assume the below,

START_DT=20120609
END_DT = 20120613

The file names in the source...
7,850
Posted By dsfreddie
Move files from one directory to another based on creation/modification date
Hi All,

Really stuck up with a requirement where I need to move a file (Lets say date_Employee.txt--the date will have different date values like 20120612/20120613 etc) from one directory to...
4,505
Posted By dsfreddie
Hi Corona, I made the change you...
Hi Corona,

I made the change you suggested.Here is what I see in logs now, (looks like soemthing is still wrong :-(



Thanks
Freddie
4,505
Posted By dsfreddie
Hello Alister, Thanks for your reply. Here...
Hello Alister,

Thanks for your reply. Here is the answer for your assumptions.

1) There will be only one EMPLOYEE file per date, but there are multiple files in the same directory with dates...
Showing results 1 to 25 of 68

 

Featured Tech Videos

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