Search Results

Search: Posts Made By: smile689
1,438
Posted By smile689
HTML Report from mail in ksh 88
Hi Team,
I'm trying to send HTML Report from email using the below script (Using ksh 88 version)

#!/bin/ksh
set -x
SUB="Test Email"
Mail_Body="This is for testing"
Send_Mail_HTML()
{
...
847
Posted By smile689
Finding file pattern in ksh 88
Hi,

I've to find the file which has the pattern
"Delete Report for History Tables"
and need to search this file pattern from directory which has sub directories as well.
I'm using ksh 88...
1,735
Posted By smile689
How to include file pattern in find command?
Hi
I've to remove the files which has the following file pattern in path /home/etc/logs

fnm_HST_date1
fnm_hst_date1
fnm_HST_date2

I've used the following code to to remove the files having...
1,620
Posted By smile689
How to loop a text file to remove the old files?
Hi ,
I'm using Ksh 88 version.
I've a text file which contains the directory names

DIR1
DIR2
----
DIR10

I've to remove the data which has more that 30 days from the above directories ....
7,118
Posted By smile689
find command -No such file error
Hi ,

I tried the below code to remove the files older that 30 days .


#!/bin/ksh
set -x
file_path1="/home/etc"
file_path2="/home/hst"
file_nm="HST"
days=30
find $file_path1/*$file_nm*...
2,549
Posted By smile689
Thank you for reply aia Today I executed the...
Thank you for reply aia

Today I executed the command . So I have given. +60means ., delete the data before Sept 12th .
but with the command I've given .. it is ins ble to delete aa11.
Please...
2,549
Posted By smile689
Thanks for the reply scott $ ls -lu *aa*...
Thanks for the reply scott


$ ls -lu *aa*
-rw-r--r-- 1 techno tst 0 Sep 10 12:34 aa11
-rw-r--r-- 1 techno tst 0 Sep 11 12:34 aa12



Thanks,
2,549
Posted By smile689
Find command to delete the files
Hi All,
I've created 2 files

touch -t 201309101234 aa10
touch -t 201309111234 aa11

Exact 60 days before from today date is SEPT 12th . As per the following command as i gave +60 means the...
19,853
Posted By smile689
How to avoid "override protection 644 (yes/no)?" -ksh 88
Hi All,
I'm using Ksh 88 version.

I'm trying to remove the files using the below script .The code is working fine but i'm getting override protection 644 (yes/no)?
message for every file...
3,749
Posted By smile689
find command to move the files to other folder - ksh 88
Hi ,

I've learnt that the following command will remove the files from the given folder for given no.of days


find /home/etc -type f -atime -10 -exec rm -f {} \;


But how can I change...
1,295
Posted By smile689
Thank You for your reply . Is the following...
Thank You for your reply .

Is the following command works


unzip -d /home/etc/hst file_nm.zip



Sorry for missing the double quotes

Thank You
1,295
Posted By smile689
Zip -r Functionality
Hi ,

I've written the following code to zip the big file


$dir_temp ="/home/etc/hst
zip -r $dir_temp/file_nm.zip $dir_temp/file_nm


The zip file has been created . When I try to UNZIP the...
1,046
Posted By smile689
Working with FOR in ksh 88
Hi,
I tried the following but giving me all the files in the directory ,
Where i need the files which are assigned to variable like below

#!/bin/ksh

Src_Dir="/home/etc"
file_nm ="ab.temp"...
4,223
Posted By smile689
Extract number part from the string in ksh 88
I have to extract number part (Date and timestamp part ) from the following 3 strings

AB_XYZA_20130930183017.log
AB_DY_XYZA_20130930183017.log
AB_GZU_20130930183017.log

Output should be ...
1,348
Posted By smile689
Thank You Pravin. It worked
Thank You Pravin. It worked
1,348
Posted By smile689
Issue with copying files into dir inside for loop
Hi ,
I'm trying to move/copy the files inside the loop into a directory .
I tried the below code and the issue is the data is not copying into the created directory but the files are copying into...
9,059
Posted By smile689
Script to zip the files of yesterday
Hi
I've the following requirement, where i need to zip the yesterday files every day .

Yesterday's Files
touch AB_XYZA_20130930183017.log
touch AB_DY_XYZA_20130930183017.log
touch...
3,874
Posted By smile689
Thank You for the information Rakesh, Can...
Thank You for the information Rakesh,

Can you please suggest me any change in the script so that it zip the every file correctly .
Or Is this fine ..

Thanks,
3,874
Posted By smile689
Thank You for the reply Rakesh, I'm...
Thank You for the reply Rakesh,

I'm sorry , I didn't understand about headers


Thanks
3,874
Posted By smile689
Zip the file in a loop in ksh 88
Hi Team,

Version : Ksh 88

The Requirement is to zip every file in a folder(which is in for loop) and move the zipped file to another folder
I tried like the below , but didn't observe any...
1,151
Posted By smile689
Working with FIND command
Hi ,
In /home/etc/files path ran the following command
find . -name 'ABC*' | wc -l

The output of the above command is 25 as expected

In path /home path ran the following command
find...
1,091
Posted By smile689
Logging success event into file
Hi,
I've the following code to log the errors any after the command is executed.

# Ksh 88 Version

log_path=/home/etc/fls/fls_log.log
del_path=/home/etc/fls/to_day
rm $del_path/* >>...
1,275
Posted By smile689
Thanks for the reply Millan, I've given...
Thanks for the reply Millan,

I've given all the necessary permissions (777) to the scripts ,Folders etc
And all the scripts are in Same directory .
1,275
Posted By smile689
Hi Vidyadhar , I'm Usig KSH 88 Version I...
Hi Vidyadhar ,
I'm Usig KSH 88 Version

I tried like below

#!/bin/ksh
set -x
Fld_Pth=/etc/home
cd $Fld_Pth
echo "This script is about to run another script."
./abc.sh
./bcd.sh...
1,275
Posted By smile689
Executing all the scritpts
Hi

I've the following shell scripts in a directory

abc.sh bcd.sh cde.sh def.sh

And all these scripts need to be executed one by one .
What is the way to execute all the scripts...
Showing results 1 to 25 of 59

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