There is a python script that I would like converted to a perl script. If someone has the time to convert the script I would appreciate it. You can find the script below:
Hi,
I have these lines in a unix script:
FILEONE = /<filepath1>/<filename1.txt>
FILENEW = /<filepath2>/<filename2.txt>
head -5 $FILEONE | sed '1d' > $FILENEW
PARAM1 = `cat $FILENEW | awk '{print $2;}' `
echo "Param1 Value: $PARAM1"
What's the correct syntax of the above lines if same... (2 Replies)
Guys I am new to this forum, this may seem like a cheeky request.
I have been asked by my manager to convert this ksh script to Perl. I do not have the foggiest about Perl and would appreciate any help on this.
Basically this scipt automates a recovery process for EMC Legato Networker. It will... (1 Reply)
Good afternoon to you all
I really need your help
I have the following script developed in .sh and I need to convert it into perl. Can someone help me do it please?
Here´s the script:
##############################################
##############################################
... (3 Replies)
I have the following problem, which I need done in Perl/ or Python using Unix/linux filters...
1. You have a very large file, named 'ColCheckMe', tab-delmited, that you are asked to process. You are told that each line in 'ColCheckMe' has 7 columns, and that the values in the... (1 Reply)
I have the following problem, which I need done in Perl/ or Python using Unix/linux filters...
1. You have a very large file, named 'ColCheckMe', tab-delmited, that you are asked to process. You are told that each line in 'ColCheckMe' has 7 columns, and that the values... (1 Reply)
I am loooking for a python/perl script which can login to gmail or any mail accounts and open a browser with the logged in page. I am trying this in a windows environment. I tried many docs available over internet an nothing seems to be working. (4 Replies)
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)
Input file (a list of input file name with *.txt extension):
campus.com_icmp_ping_alive.txt
data_local_cd_httpd.txt
data_local_cd.txt
new_local_cd_mysql.txt
new_local_cd_nagios_content.txt
Desired output file:
data local_cd_httpd
data local_cd
new local_cd_mysql
new ... (9 Replies)
Hello,,I have a very small script that contains these lines; and it works perfectly; however I need to use Perl now as I will need to feel variables from a MySQL table into this; to it would be nice to start by converting this first...
find / -perm 777 \( -type f -o -type d \) -exec ls -lid {}... (1 Reply)
Hi ,
This is my 1st program in python never tried any python before.
i am trying to write a python script which reads a .tsv file line by line and in each line it should look for mm/dd/yyyy formate and convert it to yyyy-mm-dd formate . can some one provide be some sample code to do that. (2 Replies)
Discussion started by: vikatakavi
2 Replies
LEARN ABOUT DEBIAN
python-coverage
PYTHON-COVERAGE(1) General Commands Manual PYTHON-COVERAGE(1)NAME
python-coverage - measure code coverage of Python program execution
SYNOPSIS
python-coverage -x module.py [ARG...]
python-coverage -e
python-coverage -r [-m]
python-coverage -a [file...]
DESCRIPTION
python-coverage executes a Python program and measures which of its statements are executed and which are not. It stores the information
in the file .coverage in the current working directory.
OPTIONS -e Erase the .coverage file.
-x Execute a Python module, giving it the remaining command line arguments.
-r Produce a coverage report.
-m With -r, show the line numbers that were missed by the execution.
-a Annotate source files. For each source file foo, produce foo,cover, with executed lines prefixed by ">" and non-executed by "!".
--help Produce a help summary. It might be more helpful than this manual page.
AUTHOR
The python-coverage command is a one-line Python script which calls the coverage.py Python module to do all the work. The module was rigi-
nally developed by Gareth Rees, and is now developed by Ned Batchelder. The module's home page is
http://www.nedbatchelder.com/code/modules/coverage.html.
This manual page was cobbled together by Lars Wirzenius for Debian, by copy-pasting from the help texts from the module.
PYTHON-COVERAGE(1)