10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am beginner in shell scripting. I have written a script to parse file(s) having large number of lines each having multiple comma separated strings.
But it seems like script is very slow. It took more than 30mins to parse a file with size 120MB (523564 lines), below is the script code
... (4 Replies)
Discussion started by: imrandec85
4 Replies
2. Shell Programming and Scripting
Hi All,
can any one help me on this please.
Replace sting in FILE1.txt with FILE2.txt. FILE1.txt record must have at least one state is repeated once.But need to replace only from second occurrence in record in FILE1.txt
Condition: order of searching the records in FILE2.txt is impartent.... (8 Replies)
Discussion started by: ureddy
8 Replies
3. Shell Programming and Scripting
Hi All,
I am facing performance issue while rinning the LINUX shell script.
I have file1 and file 2. File one is the source file and file 2 is lookup file. Need to replace if the pattern is matching in file1 with file2.
The order of lookup file is important as if any match then exit... (8 Replies)
Discussion started by: ureddy
8 Replies
4. UNIX for Dummies Questions & Answers
Hello All,
I have the below excerpt of code in my shell script and it taking long time to complete, though it prints the output quickly. Is there a way to make it come out once it finds the first instance as the file size of 4.7 GB it could be going through all lines of the data file to find for... (3 Replies)
Discussion started by: Ariean
3 Replies
5. Shell Programming and Scripting
Hi All
I am using following code in my shell script to send the file to a mainframe server.
ftp -in $FTP_IP_SEND <<END_OF_FTP >$LOG_DIR/ProviderExportFTP.log
quote user $FTP_USER_SEND
quote pass $FTP_PASS_SEND
ascii
send ./ProviderExport.txt 'PROJ.PDRCACTS.FD87050.EXPORT' (REPLACE... (3 Replies)
Discussion started by: Renjith180282
3 Replies
6. Shell Programming and Scripting
hi
i have written a shell script which comapare a text file data with files within number of different directories.
example.
Text File: i have a file /u02/abc.txt which have almost 20000 file names
Directories: i have a path /u03 which have some subdirectories like a,b,c which have almost... (2 Replies)
Discussion started by: malikshahid85
2 Replies
7. Shell Programming and Scripting
Hi All,
I have written a script to FTP files from local server to remote server. When i try it for few number of files the scripts runs successfully. But the same script when i run for 200-300 files it gives me performanace issue by aborting the connection.
Please help me out to improve the... (7 Replies)
Discussion started by: Shiv@jad
7 Replies
8. Shell Programming and Scripting
Hi,
The below awk script is taking about 1 hour to fetch just 11 records(columns). There are about 48000 records. The script file name is take_first_uniq.sh
#!/bin/ksh
if
then
while read line
do
first=`echo $line | awk -F"|" '{print $1$2$3}'`
while read line2
do... (4 Replies)
Discussion started by: RRVARMA
4 Replies
9. UNIX for Advanced & Expert Users
Hiii,
I wrote a shell script for testing purpose.
I have to test around 200thousand entries with the script.When i am doing only for 6000 entries its taking almost 1hour.If i test the whole testingdata it will take huge amount of time.
I just want to know is it something dependent on the... (2 Replies)
Discussion started by: namishtiwari
2 Replies
10. UNIX for Advanced & Expert Users
Hi All
We have a number of FTP Shell scripts running every day on a scheduled basis.
The issue we have is if the host connection is not available after a little while ftp times out and the script hangs as the shell returns to the ftp> prompt waiting for input from a user.
Any ideas how... (2 Replies)
Discussion started by: mlucas
2 Replies