Search Results

Search: Posts Made By: tamer
22,325
Posted By tamer
Hi How can I looking for a pattern found in...
Hi

How can I looking for a pattern found in more than one file and replace it with anther pattern

this what I was used:

find . -name "account.adrs" -depth -follow -exec grep -l "Email = ;"...
28,085
Posted By tamer
I solve it as follows: #!/usr/bin/sh ...
I solve it as follows:
#!/usr/bin/sh

dir=/var/dist
cd /mydir
<b>
today=`/usr/bin/date +%Y-%m-%d`
export today
todayLogs=`ls $today*`
export todayLogs
</b>
for file in *.log
do
if [ -f...
28,085
Posted By tamer
Thanks; but I was spent 2 days to write 200 line...
Thanks; but I was spent 2 days to write 200 line of code to logroll my mail server log files, zip them and transfer them to another server for anther purposes; and this was the only problem I faced,...
28,085
Posted By tamer
OK thanks PxT. any one can help me.
OK thanks PxT.

any one can help me.
28,085
Posted By tamer
Thanks for reply. but is this in Bourne Shell...
Thanks for reply.
but is this in Bourne Shell !!

because this error occured after running the script

test.sh: syntax error at line 7: `!' unexpected
#!/usr/bin/sh

dir=/var/dist
cd /mydir...
28,085
Posted By tamer
for file in ???? - command
using <B>Bourne shell</B> how can I list all files in such a directory that file name don't match a pattern.

e.g:
a dir. /mydir contains these files
[tamer001]-/mydir$ ls
2001-01-23.log...
3,552
Posted By tamer
hi How can I add a cronjob to the crontab...
hi

How can I add a cronjob to the crontab file?
to execute a shel script named testScript.sh every day at 00:00.

Thanks

[Edited by tamer on 01-22-2001 at 09:37 AM]
6,612
Posted By tamer
but I'm using SunOS 5.7 Solaris 2.7 ...
but I'm using
SunOS 5.7
Solaris 2.7

can I do date manipulate on this OS?
6,612
Posted By tamer
I'm using Kshell scripts cronjobs to logrolling...
I'm using Kshell scripts cronjobs to logrolling my daily log files and I stamped the log file at the end of the day by date stamp i.e.: %d_%m_%y-LogFile.

but the 22_01_2001-LogFile as example...
Showing results 1 to 9 of 9

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