Search Results

Search: Posts Made By: madhunk
2,300
Posted By madhunk
Thanks Peasant. Tried the option. Take for...
Thanks Peasant. Tried the option. Take for example the following file which has these contents.


CREATE MULTISET VOLATILE TABLE vt_test2
, NO FALLBACK, NO JOURNAL, NO LOG AS
(
...
2,300
Posted By madhunk
Thanks Rudi. Much appreciated. Tested...
Thanks Rudi. Much appreciated. Tested this.....The challenge is that each statement is different. In addition, this snippet touches other parts of the code.

Before:


BEGIN

DECLARE v_1...
2,300
Posted By madhunk
Parse through ~21,000 Database DDL statements -- Fastest way to perform search, replace and insert
Hello All:

We are looking to search through 2000 files with around 21,000 statements where we have to search, replace and insert a pattern based on the following:

1) Parse through the file and...
27,672
Posted By madhunk
Jim, We have an exact requirement, but it is...
Jim,

We have an exact requirement, but it is not like chj's where it is on two different mountpoints. The files are on one directory and one mount point. All we need to do is update the timestamp...
4,232
Posted By madhunk
Oooops...I found the answer....When I put quotes...
Oooops...I found the answer....When I put quotes it worked...Sorry!!

DAY=$(ll $FTP/$FILENAME | awk '"$FILENAME" {print $6 $7 substr($8,1,5)}' )
4,232
Posted By madhunk
Regular Expression Error in AWK
I have a file "fwcsales_filenames.txt" which has a list of file names that are supposed to be copied to another directory. In addition to that, I am trying to extract the date part and write to the...
4,624
Posted By madhunk
Thanks Joey... I did create a filename with...
Thanks Joey...

I did create a filename with the list of files that need to be copied...But I don't see much of a change in code because I am getting a count of records for each file and also using...
4,624
Posted By madhunk
Copying multiple files with "If Then Else" logic
I need some suggestions on how to write the code to copy multiple files rather than duplicating the code multiple times.

Example: I have four files that need to go throught this logic in the same...
7,404
Posted By madhunk
I am using MSK Toolkit and have not yet...
I am using MSK Toolkit and have not yet downloaded Cygwin...

But Microsoft services for UNIX is for integrating Windows into their existing UNIX-based environments..right?

I am able to run the...
7,404
Posted By madhunk
Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server
I have a .sh script which was running fine on all the UNIX Servers (AIX, SunSolaris). The script requires two mandatory parameters and many optional parameters. Now at a different client place who...
21,564
Posted By madhunk
That is true Radoulov....It is very very slow....
That is true Radoulov....It is very very slow. The only way I can get the number of lines is by doing a wc -l on the file. The records keep changing and we have ten different files that are incoming...
21,564
Posted By madhunk
Thank you Radoulov...When I ran your code, it is...
Thank you Radoulov...When I ran your code, it is saying file1, file2 or file3 is not found. It seems like the code is assuming that those are the input files. However, Jim's code is working fine.
...
21,564
Posted By madhunk
If you can recommend a fast way like awk, that...
If you can recommend a fast way like awk, that would be very much appreciated. The split taking up a lot of time.
21,564
Posted By madhunk
Split a file with no pattern -- Split, Csplit, Awk
I have gone through all the threads in the forum and tested out different things. I am trying to split a 3GB file into multiple files. Some files are even larger than this.

For example:

split...
8,365
Posted By madhunk
Thank you very much Lakris...The code looks much...
Thank you very much Lakris...The code looks much simpler and better..I am always learning better ways to do it.

Thanks again...
8,365
Posted By madhunk
Create Year directory, date subdirectory and archive the file
Hi,

After checking all the UNIX threads, I am able to come up with a solution so far. I am working on a shell script where it moves the files to a certain directory. The conditions to check are
...
1,641
Posted By madhunk
Unable to FTP while calling another script
Hi,

I am trying to use a generic script called ftp_master.ksh and use it in my script to FTP multiple files and log them. But I am unable to do so. I am not sure where I am going wrong...

My...
6,073
Posted By madhunk
Thank You Radoulov....I used the first part and...
Thank You Radoulov....I used the first part and it did work.

Would you please tell me what "${0%.*}" and ${MScript##*_} mean by.

I would really appreciate that.
6,073
Posted By madhunk
Extracting part of the basename
Hi,

I was wondering if there is an easy way to strip off the required basename. I have a script called apb0110021.sh and the contents of the script are

typeset -u MScript=`basename $0 | cut -d....
15,318
Posted By madhunk
But the only thing is script returns successful...
But the only thing is script returns successful even though it failed to truncate one of the tables. Our Oracle database was just down when I executed and the script still executed as successful.
15,318
Posted By madhunk
I still wonder what the typo is... The code...
I still wonder what the typo is...

The code provided by Aigles seem to be correct to me...

Please advice.
15,318
Posted By madhunk
Vgersh, I also looked at Manish's code and...
Vgersh,

I also looked at Manish's code and the variable that is declared in the beginning is not being used anywhere in the code. You had also mentioned that it is not required to do a cat on the...
15,318
Posted By madhunk
Loop through and truncate tables
Hi,

I was working on the truncate oracle table shell script. The script is supplied with one table name as a parameter and I would like to change it so that it is passed a file name with a list of...
32,811
Posted By madhunk
Thank you blowtorch and vgersh... Would both...
Thank you blowtorch and vgersh...

Would both the options are faster on files with 12-15 million records...
32,811
Posted By madhunk
That is what I did vgersh.. 1K$...
That is what I did vgersh..

1K$ /usr/bin/dos2unix tmp.txt > tmp1.txt
could not open /dev/kbd to get keyboard type US keyboard assumed
could not get keyboard type US keyboard assumed

I am not...
Showing results 1 to 25 of 95

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