Search Results

Search: Posts Made By: pyaranoid
5,194
Posted By pyaranoid
Mailx command not working in the script
when i am using Mailx command from AIX box, i am getting the following errors :

uuencode: not found.
mailx: not found.

but when i executed the mailx command as shown below it worked
cat...
10,727
Posted By pyaranoid
Removing Non-printable characters in unix file
Thanks for your reply ....
as the above link mentioned "sed -e 's/\"®\"/ /g' -e 's/\"™\"/ /g' < file" i followed still i am not able to convert it. please put your suggestions.

thanks in advance...
10,727
Posted By pyaranoid
Removing Non-printable characters in unix file
Hi,

We have a non printable character "®" in our file , we want to remove this character, we tried tr -dc '[:print:]' < oldfile> newfile but this command is removing all new line entries along...
1,680
Posted By pyaranoid
Thanks very much guys...Tested all the above and...
Thanks very much guys...Tested all the above and everything worked. You guys are really helpful!
1,680
Posted By pyaranoid
Cut last 13 characters and take the rest of the file name
Hi,

I would like to cut last 13 characters of a file name and take the rename the file name as follows:

Input:

A.DAT20110517033732

Output:

A.DAT

I have tried the following command...
1,740
Posted By pyaranoid
but in the first line it is given as IFS=: is...
but in the first line it is given as IFS=:
is it fine to remove ":" in the below mention code:

read a:fname:b:dte:tme:eqind:norecs:cntr:c:d:e:f < $1


Thanks
1,740
Posted By pyaranoid
#!/bin/sh RC=0 ; # return code # first...
#!/bin/sh

RC=0 ; # return code
# first check input file
if [ ! -f $1 ] ; then
echo "Input file not found: " $1
exit 1
fi
# =====================================
# read first record...
1,740
Posted By pyaranoid
Identifier issue
Hi,

We are in the process of migrating our servers from Solaris to AIX.
During our testing phase, while we are testing the scripts(reccnt.int), we are getting the following error during...
1,169
Posted By pyaranoid
Hi, When i executed this command, i am...
Hi,

When i executed this command, i am getting last file instead of first file. Please help me out.

Thanks
Sue

---------- Post updated 05-06-11 at 02:17 AM ---------- Previous update was...
1,169
Posted By pyaranoid
File Extraction
Hi,

I have three files as below:

AA.DAT20110505063903.Z
AA.DAT20110405062903.Z
AA.DAT20110305061903.Z


All the above files are appended with Date and timestamp in compressed format.

I...
1,743
Posted By pyaranoid
Thank you.. We tried the following command and...
Thank you.. We tried the following command and the output looks good..

grep ^RAM inputfile1.DAT > RAM.DAT
grep ^SAM inputfile1.DAT > SAM.DAT

Are there any implications using the above...
1,743
Posted By pyaranoid
Extracting Lines in a file
Hi,

We have a file where we need to extract the lines of a file based on the first three characters of every line in that file.

Eg:

RAM hill station
SAM student
RAM rose
SAM apple
RAM...
1,062
Posted By pyaranoid
Hi, Thanks for your swift response..I have...
Hi,

Thanks for your swift response..I have tested and verified it..working as expected..
Have a great day..

Sue
1,062
Posted By pyaranoid
Need Help in Scripting!
Hi,

Whenever my job executes, it generates a log file as follows:
Jobname.LOG`date +%m%d%y%H%M%S`.

It runs once a day..what i am trying to achieve is when some one tries to run the process...
1,481
Posted By pyaranoid
Thank you, it worked for me...have a nice day.......
Thank you, it worked for me...have a nice day....

Sue
1,481
Posted By pyaranoid
Reading a value from a file
Hi,

I would be generating a file that has a flag "Y" or "N".
In the unix script i would be checking the flag and execute the jobs as per the flag value.

Process:

Read the file--> if the...
1,491
Posted By pyaranoid
Thank you for your immediate response. I will try...
Thank you for your immediate response. I will try it and update the post.

:-)
1,491
Posted By pyaranoid
Capturing SQL O/P in Unix Script
Hi,

I would like to run a job based on the output from the SQL output.
Eg: Select count(*) from A ...if count(*) = 1 then execute the next step or else exit.

Please advise.

Thanks

S
Forum: Solaris 08-27-2009
4,998
Posted By pyaranoid
Excellent!! Such a swift response.It worked !!! ...
Excellent!! Such a swift response.It worked !!!

Thank-you so much!!

Sue
Forum: Solaris 08-27-2009
4,998
Posted By pyaranoid
Prstat Cron Schedule
Hi ,

I am trying to set up a cron job for getting the prstats for every 10 minutes to a log file.

prstat -s cpu -n 20 > a.txt

The issue is when i try to execute this command, a.txt is...
25,397
Posted By pyaranoid
Crontab For First Monday Of Every Month!!
Hi,

Could any one please let me know the crontab entry for scheduling a job for every first monday of the month?

Thank You in advance,

Sue
34,779
Posted By pyaranoid
Hi, Your script seems to be working...
Hi,

Your script seems to be working correctly. The problem now i am facing is that the output file kept on increasing its size as there is not end of file defined in the script.

How can we exit...
34,779
Posted By pyaranoid
Hi, Yes, Bdiff is not behaving as i wanted....
Hi,

Yes, Bdiff is not behaving as i wanted. I am using Sun Solaris.

As you suggested, the best approach will be writing a script. As i am a novice to shell scripting, could you please help me...
34,779
Posted By pyaranoid
Yes, I know that Bdiff is used for large files. ...
Yes, I know that Bdiff is used for large files.

Do we need to sort the files when we use bdiff?

How to get rid of linenumbers and < and > symbols in front of each record of the outputfile?
...
34,779
Posted By pyaranoid
Any Auggestions Please? Thanks Sue
Any Auggestions Please?

Thanks

Sue
Showing results 1 to 25 of 34

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