10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
In a loop I am using below command for every database
crsctl status res | grep -E "ora\.$DATABASE\.(.+)\.svc" and below is one of the sample output
NAME=ora.sgraphut.sgraphutxdb.svc
Now I want to extract just service name out of this string (that is sgraphutxdb) please help me how... (1 Reply)
Discussion started by: Vishal_dba
1 Replies
2. Shell Programming and Scripting
I'm new to scripting, I am trying to get the current month and date in my script I have this line
MYDATE=`date '+%b %d'`
this works for dates 10-31, but it returns a 09 for the 9th, where the file name has a 9,
I tried
MYDATE=`date '+%b %_d'`
but that returns Jul %_d
I... (5 Replies)
Discussion started by: rsurwill
5 Replies
3. AIX
How could we derive teh Next month in MON-RR format from current date ie sysdate in UNI AIX sheel script.I coould get a command but i supports only inLinux susse andnotin AIX.
I need for Unix AIX.Pls Help.
Regards
Shiv (2 Replies)
Discussion started by: SHIV75
2 Replies
4. UNIX for Dummies Questions & Answers
Hi Guys,
Anyone who knows how to compare the current date with the a file containing a date, say for example I have a file that looks like this:
Command was launched from partition 0.
------------------------------------------------
Executing command in server server6
Fri Dec 16... (7 Replies)
Discussion started by: rymnd_12345
7 Replies
5. Shell Programming and Scripting
Hello gurus
I am looking for a script :
We need to generate a file list created by user id on a AIX box.
Criteria 1: other than userid : dwimpid & aiadmin
Criteria 2: Files older than 2 months ( it can be any user id ).
File Path to Look: /project and /project1
Thx
silu (7 Replies)
Discussion started by: silu
7 Replies
6. Shell Programming and Scripting
I am looking for a script which does the following
Script will run daily.
1.It will get snapshot off all filesystems including nfs mounts, automounts and clearcase mounts.
2.Then it will compare new snapshot with the snapshot created in the previous run.
3.If filesystem exists in... (20 Replies)
Discussion started by: saidiya
20 Replies
7. AIX
Hi All,
I need to script a routing changes on my aix servers. I can't use smitty, very slow.
I need to delete the static routing and add a new one. I also need to change default routing.
I know using route add and route delete but I think I remember that this is not enough that's why I... (2 Replies)
Discussion started by: itik
2 Replies
8. Shell Programming and Scripting
I am trying to append a portion of a file with a date on it that changes daily to a temp file. Here are my commands:
set DATE = ('date +%Y%m%d_sum.log')
cat $HOME/right/$DATE > /export/home/temp.txt
Here is the error I keep receiving:
cat: cannot open /temp/usr/nedaniel/right/date... (6 Replies)
Discussion started by: BigDawg32
6 Replies
9. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies
10. Shell Programming and Scripting
can someone pls help me with the script for a files coming from one system to a particular directory and i want to write a script to move those files to another directory on different system by renaming the files...
pls someone help me on this...
thanking in anticipation.... (1 Reply)
Discussion started by: thatiprashant
1 Replies