10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am stuck with a problem and i want your help, what i want to do is
I have a directory name dircome
and there are 6 files present in this directory, the name of the files are d1,d2,d3,d4,d5,d6.
The Perl script print the files name, means the output should be
d1
d2
d3
d4
d5
d6 (9 Replies)
Discussion started by: parthmittal2007
9 Replies
2. Shell Programming and Scripting
Hi
i want to print the text in different color using perl script.
i am able to print on console(terminal).
but if i try to print the same into a file, i am not able to do
color.pl
#!/bin/usr/perl
use Term::ANSIColor;
print "This text is normal.\n";
use Term::ANSIColor qw(:constants);... (3 Replies)
Discussion started by: roopa
3 Replies
3. Shell Programming and Scripting
I have been unable to find this anywhere; I have a multiline variable, and I want to print the text between two patterns in that variable. So the variable is
My
real
name
is
not
DeadmanAnd I need the output to be this, by printing between "real" and "not"
name
is
or including the two... (10 Replies)
Discussion started by: killer54291
10 Replies
4. Shell Programming and Scripting
How can i print the output of a perl script on a unix console and redirect the same in a log file under same directory simultaneously ?
Like in Shell script, we use tee, is there anything in Perl or any other option ? (2 Replies)
Discussion started by: butterfly20
2 Replies
5. Shell Programming and Scripting
Hi guys
i need you help its urgent..
im trying to translate this file processing command in Perl.
awk -F'|' '{ print $5 }'
any ideas ;)
Regards (6 Replies)
Discussion started by: raid5
6 Replies
6. Shell Programming and Scripting
Suppose we have two files
one file
FAAA_HUMAN.input1
2
5
7
11
and another file
FAAA_HUMAN.output
M*0.0540*0.0039*0.2212*0.0082*0.0020*0.0137*0.0028*0.0029*0.2198*0.0104*0.0889*0.0282*0.0049*0.0804*0.1743*0.0215*0.0531*0.0071*0.0007*0.0021*0.7270*2.5000*... (4 Replies)
Discussion started by: cdfd123
4 Replies
7. Shell Programming and Scripting
Suppose u have a file
FILE A
ABCA10 DIFF VALUES P203S POLY
ABCA1 DIFF VALUES A1046D
ABCA4 DIFF VALUES D846H POLY
ABCA4 DIFF VALUES I1846T POLY
ABCA4 DIFF VALUES Wa
ABCA4 DIFF VALUES WA
ABCA4 DIFF VALUES Wb
and u want to print that if FILE A have POLY so print 0 otherwise 1
means... (1 Reply)
Discussion started by: cdfd123
1 Replies
8. Shell Programming and Scripting
Hi all,
I need a bit of help with a perl script,
I have a file containing lines that look like:
M1 (Agnd Agnd ibias_gnP Agnd) nch l=250.0n w=10u m=1 ad=2.5e-12 \
as=2.5e-12 pd=20.5u ps=20.5u nrd=0.025 nrs=0.025 sa=2.5e-07 \
sb=2.5e-07
M21 (Agnd VSSabc Agnd Agnd) nch... (3 Replies)
Discussion started by: Crypto
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am running this command in perl
print "this is a test message @1.00 pm\n"
but the output i am getting as
this is a test message .00 pm
pls help, how to get the proper output (2 Replies)
Discussion started by: vasikaran
2 Replies
10. Shell Programming and Scripting
FOR: Windows NT 4
I want perl to read a directory. there is suposed to be two files in the folder ( file1.ini and file2.ini ) and i want perl to print "Files present" or "Files NOT present" to a text document ( report.txt )
how do i do it.? (2 Replies)
Discussion started by: perleo
2 Replies