Search Results

Search: Posts Made By: lodhi1978
Forum: AIX 12-04-2012
6,948
Posted By lodhi1978
Would you please provide some sample code for the...
Would you please provide some sample code for the same?
Forum: AIX 12-04-2012
6,948
Posted By lodhi1978
0403-027 The parameter list is too long on AIX 5.3
Hi we are using AIX 5.3 64bit
I have near about 79000 log file having naming convention like "IFTMBCSun Aug 14 07:45:00 PAKST 2011".
This naming convention was created by a script error, now we...
11,471
Posted By lodhi1978
This command also generate the error and the...
This command also generate the error and the complete output converted into garbage.
The error is as below:


Syntax Error The source line is 6.
The error context is
...
11,471
Posted By lodhi1978
My apologies to did not mentioned that we are...
My apologies to did not mentioned that we are using awk in the script.

awk 'BEGIN { FS="\t" ; linewidth=80 } {
if ( NR == 3 ) {
num=sprintf("%010d", $2)
...
11,471
Posted By lodhi1978
Remove spaces / tabs from variable in script
I want to remove extra spaces from variable in aix script.
We retrieve the data from oracle database and then print the values. We have a value on 90th position.
When we execute the query on...
Forum: AIX 06-30-2011
3,547
Posted By lodhi1978
SH Script Execution Problems with Cronjob
Would you please advice how can I do that?
Forum: AIX 06-30-2011
3,547
Posted By lodhi1978
Thanks! I haved added the environment...
Thanks!
I haved added the environment variables in my shell script and it is running fine now thru cron job.
Can I executed the .profile in shell script instead of adding the environment variables...
Forum: AIX 06-30-2011
3,547
Posted By lodhi1978
SH Script Execution Problems with Cronjob
Hi,

I have created a sh script to startup and shutdown the oracle database, when I execute the script thru command line it execute successfully, but when I call the script thru cronjob it does...
4,648
Posted By lodhi1978
Dear this is displaying the changed value on...
Dear this is displaying the changed value on screen only, as
PAGE : 1 of 5
PAGE : 2 of 5
PAGE : 3 of 5
PAGE : 4 of 5
PAGE : ...
4,648
Posted By lodhi1978
Hi, I have managed to remove the lines...
Hi,

I have managed to remove the lines after pharse "NUMBER OF TRANSACTIONS thru below sed statement
sed '/NUMBER OF TRANSACTIONS/q' infile > outfile.
Now I need to add a page break or add...
4,648
Posted By lodhi1978
Find and add/replace text in text files
Hi rdcwayx,

I have tried but the page no reformatting is not working.
I have uploaded the sample file names "test.txt". Kindly note that the contents are purely dummy.


Similarly the second...
4,648
Posted By lodhi1978
Find and add/replace text in text files
Hi.

I would like to have experts help on below action.
I have text files in which page nubmers exists in form like
PAGE : 1
PAGE : 2
PAGE : 3 and so...
Forum: AIX 10-06-2010
8,197
Posted By lodhi1978
We have also tried sftp and found the same result...
We have also tried sftp and found the same result as ftp.



The NIC configuration on both the servers as below:
Media Speed Selected: 1000 Mbps Full Duplex
Media Speed Running: 1000 Mbps...
Forum: AIX 10-01-2010
8,197
Posted By lodhi1978
We have compressed the data before FTP, we use...
We have compressed the data before FTP, we use gzip to compress. Also note that the data contains multiple files sized 500 MB, 200 MB, 100MB. The Communication vendor has asked to check if there is...
Forum: AIX 09-30-2010
8,197
Posted By lodhi1978
Slow FTP response on WAN
Hi All.

We are using AIX 5.3 ML9. There is 1 Gig NIC installed on two servers (Primary and Secondary) with Full Duplex Mode. We have scheduled a cronjob to copy the backup from primary to...
Forum: AIX 06-19-2010
2,962
Posted By lodhi1978
Restore a directory from backup
Dear All:

we are using backup command on AIX to take backup
as below in this command we also add compress command


ulimit unlimited
cd /apps/oracle
find orcldb orcldata arch |tee...
10,659
Posted By lodhi1978
Hi Thanks for your support dears: The...
Hi

Thanks for your support dears:

The code is looking like below


# Store OS current date in a variable then subtract <n> days and store in new variable
DTDD=`date +"%d"`...
10,659
Posted By lodhi1978
How can we use a variable value in find command
Hi All:

I want to write a shell script to store OS current date - 1 day value in a variable.

Current Date is: 22042010 and new value is 21042010

I have multiple files having date value in...
7,426
Posted By lodhi1978
Thanks Ahmad for your correction. I did not mean...
Thanks Ahmad for your correction. I did not mean that it was wrong, how can I say bcz he is the first one who replied me.

Any I make changes as per your suggestion i.e.

awk '/TITLE OF ACCOUNT...
7,426
Posted By lodhi1978
Thru this the first 2 lines are printing after...
Thru this the first 2 lines are printing after every line. i.e.


aigles code is generating right output.

Regards,

Hassan
7,426
Posted By lodhi1978
Files generated with A/C No. as required, but the...
Files generated with A/C No. as required, but the initial 2 lines of every statement missed in newly created text files. i.e.

TITLE OF ACCOUNT : MUHAMMAD RASHID ...
7,426
Posted By lodhi1978
changed data to something random
Hi Franklin!

Thanks for your support: Its really works.

Would u pls explain how it works:

awk -F"[\./]" '/FILE =/{f=$(NF-1)}f{print > f}' file

what does NF-1 means?

I have another file...
7,426
Posted By lodhi1978
Create multiple text file from a single text file on AIX
Hi

I need to create multiple text files from onc text file on AIX. The data of text files is as below:

**********************************************...
Showing results 1 to 23 of 23

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