10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i set a variable from the command line:
export GANG="james,roy,martin"
i can access this variable ($GANG) from a script. but each time i run the script, the variable keeps getting bigger. more info keeps getting added to it.
Is there anyway i can make the $GANG variable contain the... (3 Replies)
Discussion started by: SkySmart
3 Replies
2. AIX
HI admins,
I am not able to clear pvid .I am getting below error.
chdev -l hdisk273 -a pv=clear
Method error (/usr/lib/methods/chgdisk):
0514-047 Cannot access a device.
pv
The disk is from SAN. I can clear remove the disk using rmdev.But if i run cfgmgr , this disk apperas... (2 Replies)
Discussion started by: newaix
2 Replies
3. AIX
Hi
i need a script to manage the mount point for any log location (/u01/dump/log/)
i need a script which removes files older then x days but it should not remove file with extention *.log, *.ora etc
then for remaing files it must search the huge files like *.txt and do fuser <filename>
and... (0 Replies)
Discussion started by: javeedkaleem
0 Replies
4. Shell Programming and Scripting
Hello,
I am struggling with using variable made using "eval".
a=4
eval b$a=20
echo $b$a ???
As shown above, I am trying to call back the variable "bX" assuming I do not know the value of "a".
How can I do that?
I tried several combinations but nothing worked.
Thanks (10 Replies)
Discussion started by: jolecanard
10 Replies
5. Shell Programming and Scripting
Hi,
I use AIX (ksh) and Linux (bash) servers. I'm trying to do scripts to will run in both ksh and bash, and most of the time it works. But this time I don't get it in bash (I'm more familar in ksh).
The goal of my script if to read a "config file" (like "ini" file), and make various report.... (2 Replies)
Discussion started by: estienne
2 Replies
6. Linux
Is it possible to clear certain specific commands from history. I mean not clearing the entire history (history -c).
You don't want anyone to see a particular command you executed. must not also show you have cleared history.
Is it possible ? (2 Replies)
Discussion started by: nitin09
2 Replies
7. Shell Programming and Scripting
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
Discussion started by: arsidh
10 Replies
8. HP-UX
HI,
Can anybody tell me...what is a command for clearing command history
in HP-UX machine. I tried 'history -c' but it is not applicable....
Thanks
JAGDISH MACHHI (4 Replies)
Discussion started by: jagdish.machhi@
4 Replies
9. Filesystems, Disks and Memory
Hi,
We need to clear the contents of a file. For this we tried using the commands like - '>filename' and 'cat filename > /dev/null'.
If the file size is large, the above commands will clear the file contents but the size of the file remains the same (checked using the command 'ls -l... (6 Replies)
Discussion started by: raghukayyar
6 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Does anyone know of a command to safely clear the swapfiles to free up diskspace? It's done at shutdown/startup, but I'd rather not have down time, if possible.
Thanks,
MrToast
(BTW, Mac OS X 10.3.5 ;) ) (3 Replies)
Discussion started by: MrToast
3 Replies