05-06-2008
thanks, that clears up a few things.
ta.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how does below tr command replace nonletters with newlines?
I think I understand tr -cs '\n' part.. but what is
A-Za-z\' <--- what is this??
tr -cs A-Za-z\' '\n' |
-c --complement
-s, --squeeze-repeats
replace each input sequence of a repeated character that is... (0 Replies)
Discussion started by: convenientstore
0 Replies
2. Shell Programming and Scripting
how does below tr command replace nonletters with newlines?
I think I understand tr -cs '\n' part.. but what is
A-Za-z\' <--- what is this??
tr -cs A-Za-z\' '\n' |
-c --complement
-s, --squeeze-repeats
replace each input sequence of a repeated character that is... (1 Reply)
Discussion started by: convenientstore
1 Replies
3. UNIX and Linux Applications
Hi am having a c pgm. It has the include files (unistd.h,sys/types.h,win.h,scr.h,curses.h,stdarg.h and color.h). I don't know the purpose of these include files. will u plz explain me. (1 Reply)
Discussion started by: Mari.kb
1 Replies
4. UNIX for Dummies Questions & Answers
Its great someone provided this script that strips out a filename and extension but can someone explain how each line works?
file1='Jane Mid Doe.txt'
newfile='Jane.txt'
1) ext=${file1##*.}
2) filename=${file%%.???}
3) set -- $filename
4) newfile="1.$extension" (1 Reply)
Discussion started by: Lillyt
1 Replies
5. Shell Programming and Scripting
Can you please explain the following code plz?
my_cd=' '
while getopts :e: OPTION;
do
case "$OPTION" in
e) my_cd ="$OPTARG";;
esac
done
if ; then
echo " >>> ERROR - I am wrong"
echo " >>> ERROR - Hello"
exit 99
fi
What I don't understand is what is OPTION or... (3 Replies)
Discussion started by: RubinPat
3 Replies
6. Shell Programming and Scripting
Hello,
I have recently come across this awk program. Can some one shed some light on what is taking place.
awk '{!a++}END{for(i in a) if ( a >10 ) print a,i }' $FILE
Best Regards,
jaysunn (1 Reply)
Discussion started by: jaysunn
1 Replies
7. UNIX for Dummies Questions & Answers
Hi all
I am new to egrep can someone please explain me what does the below Statement do
egrep -v "^missing sales|^\
Thanks in advance
Sri
Please use next time code tags for your code and data (4 Replies)
Discussion started by: Sri3001
4 Replies
8. Shell Programming and Scripting
I have a case where the script has to run in two modes as options and based on the mode, script excepts optional and mandatory arguments.
script.sh -a -f <value1> -d <value2> -h <value3>
script.sh -b -i <value4>
a and b are the modes of the script execution.
value2, value3 are optional.... (4 Replies)
Discussion started by: ksailesh1
4 Replies
9. Shell Programming and Scripting
Hi,
I need more explination on it, how it works
abcd="$(echo "$abcd" | sed 's/ //g')" >> ${LOGFILE} 2>&1
can any one suggest me on this?
Rgds,
LKR (1 Reply)
Discussion started by: lakshmanraok
1 Replies
10. UNIX for Beginners Questions & Answers
dear sir,
I am new to unix zone. need some explanation on the function used.
cat /apps/prd/venue/code/bin/std.funcs
#!/usr/bin/ksh
#-------------------------------------------------------------------
# printmsg: prints the message given in arg 1 with timestamp to
# stdout... (3 Replies)
Discussion started by: gowthamsoft
3 Replies
LEARN ABOUT CENTOS
devel::leak
Leak(3) User Contributed Perl Documentation Leak(3)
NAME
Devel::Leak - Utility for looking for perl objects that are not reclaimed.
SYNOPSIS
use Devel::Leak;
... setup code
my $count = Devel::Leak::NoteSV($handle);
... code that may leak
Devel::Leak::CheckSV($handle);
DESCRIPTION
Devel::Leak has two functions "NoteSV" and "CheckSV".
"NoteSV" walks the perl internal table of allocated SVs (scalar values) - (which actually contains arrays and hashes too), and records
their addresses in a table. It returns a count of these "things", and stores a pointer to the table (which is obtained from the heap using
malloc()) in its argument.
"CheckSV" is passed argument which holds a pointer to a table created by "NoteSV". It re-walks the perl-internals and calls sv_dump() for
any "things" which did not exist when "NoteSV" was called. It returns a count of the number of "things" now allocated.
CAVEATS
Note that you need a perl built with -DDEBUGGING for sv_dump() to print anything, but counts are valid in any perl.
If new "things" have been created, "CheckSV" may (also) report additional "things" which are allocated by the sv_dump() code.
HISTORY
This little utility module was part of Tk until the variable renaming in perl5.005 made it clear that Tk had no business knowing this much
about the perl internals.
AUTHOR
Nick Ing-Simmons <nick@ni-s.u-net.com>
perl v5.16.3 2004-03-18 Leak(3)