Convert from Csh to Perl


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Convert from Csh to Perl
# 1  
Old 01-08-2010
Convert from Csh to Perl

Hi ,

I am trying to convert the below code embedded in a csh script to Perl.
Can any expert give me some advice on this ?


Code:
sed -n ''"$start_line"',$ p' $tester_dir/nfiles_extracted.txt|cut -c1-4,6-|/bin/perl $test_summary/compare_for_all
_Duts.pl|sort > $tester_dir/nfiles_extracted1.txt

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using CSH and need to convert html to PDF

Hi, I am currently using the below code and it throws an error saying badly placed ()'s. I am not sure if this right way to convert html to PDF, please help..I am using C-shell script system ("../html2doc pdf 1000 portrait html$prnfile.html $prnfile.pdf ") print "Content-type:application/pdf... (7 Replies)
Discussion started by: lakers646
7 Replies

2. Shell Programming and Scripting

Is there any script to convert sh to csh ?

Hi All Is there anyone who have the script to covnert a sh sell script to csh and can share with me? Thanks a lot! Nick:b: (3 Replies)
Discussion started by: nicolast0604
3 Replies

3. Shell Programming and Scripting

how to convert from csh to sh

Dear all I am installing some eda software using script. My OS is ubuntu 10.04 and the eda software writing in csh. Since ubuntu reading script file in sh writting. I need someone can help me to convert some definition in script from csh to sh. Below is part of script set archinfo =... (3 Replies)
Discussion started by: tompham
3 Replies

4. Shell Programming and Scripting

HELP on Perl array / sorting - trying to convert Korn Shell Script to Perl

Hi all, Not sure if this should be in the programming forum, but I believe it will get more response under the Shell Programming and Scripting FORUM. Am trying to write a customized df script in Perl and need some help with regards to using arrays and file handlers. At the moment am... (3 Replies)
Discussion started by: newbie_01
3 Replies

5. Shell Programming and Scripting

Convert .sh to .csh

Hi All, Could any one of you give me a hand to convert the following line of codes from .sh to .csh please ? proc_id=`fuser /tmp/test` if then echo "File is not being used by any thing" fi if then echo "File is being used... please wait" sleep 1 fi Regards. ---------- Post... (1 Reply)
Discussion started by: sraj142
1 Replies

6. Shell Programming and Scripting

Need a script to convert csh to bash

Hi, Can anyone give me a script to convert csh to bash? or any key points which can help me to do so as i am new to it. (3 Replies)
Discussion started by: vineet.dhingra
3 Replies

7. UNIX for Dummies Questions & Answers

How to Convert to CSH File

Hi Everyone, I have a body of code that I'd like to know how to convert to a csh file. In Unix, under a directory, I wish to ls into each of its subdirectories: In Unix prompt I type foreach i(*) foreach? ls $i foreach? end however, when I try to store this body of code in .csh: ... (2 Replies)
Discussion started by: tommms
2 Replies

8. Shell Programming and Scripting

Pass csh variable to Perl

Hi All, I am trying to put the csh variable into a perl. In the below case, i am trying to put the csh variable "var" into my perl code. I tried to use '"$var"' but i don;t think it works. Can anybody help me pls? #!/bin/csh set var = `echo "xxx"` perl myperlcode.pl file ... (9 Replies)
Discussion started by: Raynon
9 Replies

9. Shell Programming and Scripting

How do I get the same results in Perl as in csh

In csh I can do this echo `ps -ef | grep root | awk '{print $2}'` how would I get the same results using perl. Thanks (6 Replies)
Discussion started by: bdsffl
6 Replies

10. Shell Programming and Scripting

how to convert things from csh to sh

i have this method in csh that check for file exist. #check that file exists if ( ! -e $6$5 ) then echo $6$5 Not Found exit 8 endif however i wanted in to be in just sh. so i change the code to: if ; then echo $6$5 Not Found exit 8 fi I get error... (1 Reply)
Discussion started by: forevercalz
1 Replies
Login or Register to Ask a Question
Mail::Message::Convert::HtmlFormatText(3pm)		User Contributed Perl Documentation	       Mail::Message::Convert::HtmlFormatText(3pm)

NAME
Mail::Message::Convert::HtmlFormatText - Convert HTML into Text INHERITANCE
Mail::Message::Convert::HtmlFormatText is a Mail::Message::Convert is a Mail::Reporter SYNOPSIS
use Mail::Message::Convert::HtmlFormatText; my $af = Mail::Message::Convert::HtmlFormatText->new; my $plain_body = $af->format($body); DESCRIPTION
Convert HTML/XHTML message body objects into plain text bodies using HTML::FormatText. This package requires HTML::TreeBuilder and HTML::FormatText which are not installed by default together with Mail::Box. See also Mail::Message::rebuild() with rule "text_alternative_for_html". Converters between message objects Other converters METHODS
Constructors Mail::Message::Convert::HtmlFormatText->new(OPTIONS) -Option --Defined in --Default fields Mail::Message::Convert <see description> leftmargin 3 log Mail::Reporter 'WARNINGS' rightmargin 72 trace Mail::Reporter 'WARNINGS' fields => NAMES|ARRAY-OF-NAMES|REGEXS leftmargin => INTEGER The column of the left margin, passed to the formatter. log => LEVEL rightmargin => INTEGER The column of the right margin, passed to the formatter. trace => LEVEL Converting $obj->format(BODY) Pass an html/xhtml encoded body, and a plain text body is returned. Characters are translated into Latin1. $obj->selectedFields(HEAD) See "Converting" in Mail::Message::Convert Error handling $obj->AUTOLOAD() See "Error handling" in Mail::Reporter $obj->addReport(OBJECT) See "Error handling" in Mail::Reporter $obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK]) Mail::Message::Convert::HtmlFormatText->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK]) See "Error handling" in Mail::Reporter $obj->errors() See "Error handling" in Mail::Reporter $obj->log([LEVEL [,STRINGS]]) Mail::Message::Convert::HtmlFormatText->log([LEVEL [,STRINGS]]) See "Error handling" in Mail::Reporter $obj->logPriority(LEVEL) Mail::Message::Convert::HtmlFormatText->logPriority(LEVEL) See "Error handling" in Mail::Reporter $obj->logSettings() See "Error handling" in Mail::Reporter $obj->notImplemented() See "Error handling" in Mail::Reporter $obj->report([LEVEL]) See "Error handling" in Mail::Reporter $obj->reportAll([LEVEL]) See "Error handling" in Mail::Reporter $obj->trace([LEVEL]) See "Error handling" in Mail::Reporter $obj->warnings() See "Error handling" in Mail::Reporter Cleanup $obj->DESTROY() See "Cleanup" in Mail::Reporter $obj->inGlobalDestruction() See "Cleanup" in Mail::Reporter DIAGNOSTICS
Error: Package $package does not implement $method. Fatal error: the specific package (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. SEE ALSO
This module is part of Mail-Box distribution version 2.105, built on May 07, 2012. Website: http://perl.overmeer.net/mailbox/ LICENSE
Copyrights 2001-2012 by [Mark Overmeer]. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html perl v5.14.2 2012-05-07 Mail::Message::Convert::HtmlFormatText(3pm)