10-21-2014
So ((count++)) is not suggested?
Or is that as well just bash,ksh93 and zsh?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello:
Executing following script i'm getting error:
1=1+1: 0403-058 Assignment requires an lvalue.
It's not assuming the counter but i don't know why.
Some hint?
Thank you very much in advance.
#!/bin/ksh
<path>/tiempos.txt
num_exe=1
TIEMPOS=<path>/tiempos.txt
while ]
do (2 Replies)
Discussion started by: Felix2511
2 Replies
2. Shell Programming and Scripting
I have generated a script that will email a list of people if a certain PID is not running, using "mailx". I have the script running every 5 minutes as a cron job.
I want the script to stop sending an email, if the email has been sent 5 times (meaning PID is dead). I want this so that my... (3 Replies)
Discussion started by: Sunguy222
3 Replies
3. Shell Programming and Scripting
Hi,
I'm new to unix and have a problem? I'm writing a basic script in ksh and it is a basic quiz with 5 questions. I need to be able to accumulate the correct answers at the end and echo out the total correct answers, I cannot work it out? Please see script so far. If anyone can help that will... (2 Replies)
Discussion started by: Pablo_beezo
2 Replies
4. Shell Programming and Scripting
I have looked high and low, tryed lots of diffrent things but cant get a simple counter to work right.
what i need is to increase a count ever time it finishes the test, pass or fail. example TEST PASS 1, NEXT TEST PASS 2,
I curently have
set foo o
while {$foo <=5} {
incr foo
puts... (1 Reply)
Discussion started by: melvin
1 Replies
5. Shell Programming and Scripting
I am executing the following script using 'awk -f process.awk out' where 'out' is the input file which consists of 5000 sequences. Each time it takes one sequence, run the below program by creating a directory, run the mfold command within that directory, running another shell script 'final5' and... (2 Replies)
Discussion started by: kswapnadevi
2 Replies
6. Shell Programming and Scripting
Hi,
I am writing a script which processes large number of files in a directory. I wanto display a counter which increment after processing each file. I am processing each file in a for loop. If I echo a variable with its value increasing with each file, I will get around 5000 lines as output.... (10 Replies)
Discussion started by: jaiseaugustine
10 Replies
7. Shell Programming and Scripting
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Discussion started by: torchij
16 Replies
8. Shell Programming and Scripting
I want to run my shell script to the limit number.Suppose I know in advance that MAX=5 then I want that my script run 5 times only.Something like below$ vi testingMAX=5COMMAND="ssh -l stpuser VHLDVWSAD001 /projects/st/utils/deploy/deployall.sh >/dev/null 2>&1 &" ; sleep 20;count=0while... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I am having trouble calculating some numbers and I was hoping someone could help me solve this.
I have one file with 1 column and what I'm trying to do is add up the lines until a certain value is reach, then jump to where it last finished counting and continue.
so for ex: if I... (27 Replies)
Discussion started by: verse123
27 Replies
LEARN ABOUT DEBIAN
dist::zilla::plugin::templatemodule
Dist::Zilla::Plugin::TemplateModule(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::TemplateModule(3pm)
NAME
Dist::Zilla::Plugin::TemplateModule - a simple module-from-template plugin
VERSION
version 4.300020
DESCRIPTION
This is a ModuleMaker used for creating new Perl modules files when minting a new dist with "dzil new". It uses Text::Template (via
Dist::Zilla::Role::TextTemplate) to render a template into a Perl module. The template is given two variables for use in rendering: $name,
the module name; and $dist, the Dist::Zilla object. The module is always created as a file under ./lib.
By default, the template looks something like this:
use strict;
use warnings;
package {{ $name }};
1;
ATTRIBUTES
template
The "template" parameter may be given to the plugin to provide a different filename, absolute or relative to the build/profile directory.
If this parameter is not specified, this module will use the boilerplate module template included in this module.
MINTING CONFIGURATION
This module is part of the standard configuration of the default Dist::Zilla Minting Profile, and all profiles that don't set a custom
':DefaultModuleMaker' so you don't need to normally do anything to configure it.
dzil new Some::Module
# creates ./Some-Module/*
# creates ./Some-Module/lib/Some/Module.pm
However, for those who wish to configure this ( or any subclasses ) this is presently required:
[TemplateModule / :DefaultModuleMaker]
; template = SomeFile.pm
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-21 Dist::Zilla::Plugin::TemplateModule(3pm)