Search Results

Search: Posts Made By: mail.chiranjit
6,608
Posted By mail.chiranjit
Thank you for your help, This has Worked.
Thank you for your help, This has Worked.
6,608
Posted By mail.chiranjit
DBMS_OUTPUT.PUT_LINE doesn't print values in shell script
Hello,
I'm trying to print the value of my cursor in the dbms_output.put_line in shell script, but it only shows "PL/SQL procedure successfully completed." nothing else. I have set serveroutput on,...
529
Posted By mail.chiranjit
Thank you for your advise, got it working now :)
Thank you for your advise, got it working now :)
529
Posted By mail.chiranjit
While-Do-If-Then-Else Problem
Hi All,
Sorry I am a beginner in shell scripting and need a help with my script.
logic : I am checking for a process, if thats running then sleep and check again and if not then start another...
15,245
Posted By mail.chiranjit
Okay.
Okay.
15,245
Posted By mail.chiranjit
How to Undo overwrite file in UNIX?
Hi,

Could anyone please advise if its possible in unix to undo the changes for a file that has been overwrriten.
By mistake i have overwritten a file and now i need the original file, is there a...
3,471
Posted By mail.chiranjit
Thanks for your reply, appreciate it. But i am...
Thanks for your reply, appreciate it.
But i am trying to write a script for doing this. Also my logfiles name didn't start with current date.

They are like a.log, b.log with todays timestamp.
so...
3,471
Posted By mail.chiranjit
Find and copy files based on todays date and search for a particular string
Hi All,
I am new to shell srcipting.

Problem :

I need to write a script which copy the log files from /prod/logs directory based on todays date like (Jul 17) and place it to /home/hzjnr0...
1,574
Posted By mail.chiranjit
Thanks people i got the required output. Thanks...
Thanks people i got the required output.
Thanks again.
1,574
Posted By mail.chiranjit
Thanks, but it is not resolving the problem....
Thanks,
but it is not resolving the problem. gives me the same o/p.
i got the problem
ls -ltr |grep "$Date"|awk '{print $9}'>>b.txt
this line of code is adding an extra value b.txt to the file...
1,574
Posted By mail.chiranjit
I have wrote a script like this: ...
I have wrote a script like this:


#!/bin/sh
Date=`date +"%b %d"`
cd /prod/logs
printf "No of log files are\n"
ls -ltr |grep "$Date"|wc -l
ls -ltr |grep "$Date"|awk '{print $9}'>>b.txt
mv...
1,574
Posted By mail.chiranjit
Need to write a shell script
Hi, I need some help to write a script
i need to write script that will count the no of logs generated for the day and specify the logfiles names which is not generated for the day.
Default no of...
Showing results 1 to 12 of 12

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