10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If a declare a direct hash , then the hash element works fine.
my %test = ("test",1);
Here in the above, the name of the hash is predeclared...
Suppose now I need to create the hash elements dynamically in the for loop.
my... (1 Reply)
Discussion started by: scriptscript
2. Shell Programming and Scripting
i am new to shell scripting.
i was going thru the part option and arguments. on this section i fail to understand the use of exit 0 in below example .
USAGE="Usage: $0 "
case "$1" in
-t) TARGS="-tvf $2" ;;
-c) TARGS="-cvf $2.tar $2" ;;
*) echo "$USAGE"
esac... (13 Replies)
Discussion started by: scriptor
3. Shell Programming and Scripting
I have a problem in counting number of process getting run with my current script name..
Here it is
ps -ef | grep $0 | grep -v grep
This display just one line with the PID, PPID and other details when i print it in the script.
But when I want to count the numbers in my... (11 Replies)
Discussion started by: sathyaonnuix
Hello, I hope all is well.
Two issues that I am grappling with.
One: Is this a true statement: (AIX, LDAP configured), even if authentication is configured with LDAP, the system would still need to be authenticated against local (/etc/passwd); incase of network failure?
Two: I can log... (0 Replies)
Discussion started by: rsheikh
5. UNIX for Dummies Questions & Answers
Good day, everyone!
Could anybody explain me the following situation.
If I'm running similar script:
echo $Var | tr -t "$Var" "$Var2"
Why the output is :
instead of Anna Kurnikova?
Thank you in advance for any... (2 Replies)
Discussion started by: Nafanja
6. Shell Programming and Scripting
I am trying to delete all the lines in a particular file having a pattern. The problem is that it has special characters and for some reason is not doing the job.
/home/test/RYHUJ/HHHH... (3 Replies)
Discussion started by: alfredo123
7. UNIX for Dummies Questions & Answers
Can somebody explain it to me that why wc gives more chars suppose
Ab.txt have two lines
then wc -c ab.txt will give 10.why not 8.okay may be it is taking count one for each line just in case but why echo "qwer"|wc -C gives 5.
Ok with \c it is returning 4. :) (6 Replies)
Discussion started by: Dhruva
8. UNIX for Dummies Questions & Answers
I'm an intern at a company that recently bought out another business. In doing so, they inherited a unix system that contains files which they need to retrieve. No one in the company, including myself, really understands or knows unix so please respond with the true assumption that I'm a unix... (1 Reply)
Discussion started by: intern
9. UNIX for Dummies Questions & Answers
:confused: some one please tell me where i can possibly find out what is unix 10.2 and the basic system functions of it is. I really need help! (1 Reply)
Discussion started by: tribb24
10. Shell Programming and Scripting
I have written the following two scripts.
echo "From a.ksh::" $aa
echo "From b::" $aa
} (1 Reply)
Discussion started by: kdipankar