01-13-2014
If issues occur when running as script you might suspect something to do with your ENV... e.g. if test1a is an alias it will not run...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
when I try to run rm on multiple files I have problem to delete files with space.
I have this command :
find . -name "*.cmd" | xargs \rm -f
it doing the work fine but when it comes across files with spaces like : "my foo file.cmd"
it refuse to delete it
why? (1 Reply)
Discussion started by: umen
1 Replies
2. Shell Programming and Scripting
Question for anyone that might be able to help:
My objective is to eheck if a file (a source file) exists in a directory. If it does then, I'd like to call an application (Informatica ETL file...not necessary to know) to run a program which extracts data and loads it into multiple targets.
... (6 Replies)
Discussion started by: jnanasakti
6 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have thousands of files in a directory that have the following 2 formats:
289620178.aln
289620179.aln
289620180.aln
289620183.aln
289620184.aln
289620185.aln
289620186.aln
289620187.aln
289620188.aln
289620189.aln
289620190.aln
289620192.aln....
and:
alnCDS_1.fasta (1 Reply)
Discussion started by: greptastic
1 Replies
4. Shell Programming and Scripting
I'm trying some thing like this. But not working
It worked for bash files
Now I want some thing like that along with multiple input files by redirecting their outputs as inputs of next command like below
Could you guyz p0lz help me on this
#!/usr/bin/awk -f
BEGIN
{
}
script1a.awk... (2 Replies)
Discussion started by: repinementer
2 Replies
5. Shell Programming and Scripting
Hi,
I want to run a Perl script on multiple files, with same name ("Data.txt") but in different directories (eg : 2010_06_09_A/Data.txt, 2010_06_09_B/Data.txt).
I know how to run this perl script on files in the same directory like:
for $i in *.txt
do
perl myscript.pl $i > $i.new... (8 Replies)
Discussion started by: ad23
8 Replies
6. Shell Programming and Scripting
Hi everyone,
I'm new to the forums, as you can probably tell... I'm also pretty new to scripting and writing any type of code.
I needed to know exactly how I can grep for multiple strings, in files located in one directory, but I need each string to output to a separate file.
So I'd... (19 Replies)
Discussion started by: LDHB2012
19 Replies
7. Shell Programming and Scripting
Hi
I have 100 files under file A labled 1.txt 2.txt.....100.txt(made up name)
I have 1 files under file B labled name.txt
How can i run the same perl script on 100 files and file name.txt
I want to run
perl script.pl A/1.txt B/name.txt
perl script.pl A/2.txt B/name.txt
.......
perl... (3 Replies)
Discussion started by: grace_shen
3 Replies
8. UNIX for Dummies Questions & Answers
How can I run the following command on multiple files and print out the corresponding multiple files.
perl script.pl genome.gff 1.txt > 1.gff
However, there are multiples files of 1.txt, from 1----100.txt
Thank you so much.
No duplicate posting! Continue here. (0 Replies)
Discussion started by: grace_shen
0 Replies
9. Shell Programming and Scripting
How can I Run one script on multiple files and print out multiple files.
FOR EXAMPLE
i want to run script.pl on 100 files named 1.txt ....100.txt under same directory and print out corresponding file 1.gff ....100.gff.THANKS (4 Replies)
Discussion started by: grace_shen
4 Replies
10. UNIX for Dummies Questions & Answers
Hi Guys,
I've been having a look around to try and understand how i can do the below however havent come across anything that will work.
Basically I have a parser script that I need to run across all files in a certain directory, I can do this one my by one on comand line however I... (1 Reply)
Discussion started by: mutley2202
1 Replies
LEARN ABOUT DEBIAN
cgi::application::plugin::viewcode
CGI::Application::Plugin::ViewCode(3pm) User Contributed Perl Documentation CGI::Application::Plugin::ViewCode(3pm)
NAME
CGI::Application::Plugin::ViewCode - View the source of the running application
SYNOPSIS
In your CGI::Application based class
use CGI::Application::Plugin::ViewCode;
Then you can view your module's source (or pod) as it's running by changing the url
?rm=view_code
?rm=view_code#215
?rm=view_code&pod=0&line_no=0
?rm=view_code&module=CGI-Application
?rm=view_pod
?rm=view_pod&module=CGI-Application
INTERFACE
This plugin works by adding extra run modes (named "view_code" and " view_pod ") to the application. By calling this run mode you can see
the source or POD of the running module (by default) or you can specify which module you would like to view (see SECURITY).
view_code
This extra run mode will accept the following arguments in the query string:
module
The name of the module to view. By default it is the module currently being run. Also, since colons (':') aren't simply typed into
URL's, you can just substitute '-' for '::'.
?rm=view_code?module=My-Base-Class
highlight
Boolean indicates whether syntax highlighting (using Syntax::Highlight::Perl::Improved) is "on" or "off". By default it is "on".
line_no
Boolean indicates whether the viewing of line numbers is "on" or "off". By default it is "on". It "line_no" is on, you can also
specify which line number you want to see by adding an anchor to the link:
?rm=view_code#215
This will take you immediately to line 215 of the current application module.
pod Boolean indicates whether POD is seen or not. By default it is seen>.
view_pod
This extra run mode will accept the following arguments in the query string:
module
The name of the module to view. By default it is the module currently being run. Also, since colons (':') aren't simply typed into
URL's, you can just substitute '-' for '::'.
?rm=view_pod?module=My-Base-Class
AS A POPUP WINDOW
This plugin can be used in conjunction with CGI::Application::Plugin::DevPopup. If we detect that CGI::Application::Plugin::DevPopup is
running and turned on, we will create a sub-report that includes the highlighted source code.
So you can simply do the following:
BEGIN { $ENV{CAP_DEVPOPUP_EXEC} = 1; } # turn it on for real
use CGI::Application::Plugin::DevPopup;
use CGI::Application::Plugin::ViewCode;
Befault, this report will be the same thing produced by "view_code". If you want this report to include the "view_pod" report, simply set
the the $ENV{CAP_VIEWCODE_POPUP_POD} to true. You can also turn off the "view_code" report but setting $ENV{CAP_VIEWCODE_POPUP_CODE} to
false.
# have the POD report, but not the code in the dev popup window
BEGIN {
$ENV{CAP_DEVPOPUP_EXEC} = 1; # turn it on for real
$ENV{CAP_VIEWCODE_POPUP_POD} = 1; # turn on POD report
$ENV{CAP_VIEWCODE_POPUP_CODE} = 0; # turn off code report
}
use CGI::Application::Plugin::DevPopup;
use CGI::Application::Plugin::ViewCode;
SECURITY
This plugin is designed to be used for development only. Please do not use it in a production system as it will allow anyone to see the
source code for any loaded module. Consider yourself warned.
AUTHOR
Michael Peters, "<mpeters@plusthree.com>"
BUGS
Please report any bugs or feature requests to "bug-cgi-application-plugin-viewsource@rt.cpan.org", or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-ViewCode <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-
Application-Plugin-ViewCode>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2005 Michael Peters, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.3 2011-06-26 CGI::Application::Plugin::ViewCode(3pm)