I've got two large csv text table files with different number of columns each.
I have to compare them based on first two columns and create resulting file
that would in case of matched first two columns include all values from first one and all values (except first two colums) from second one. I... (5 Replies)
Hi,
I have different files of the same type, as:
Time:
100
snr:
88
perf:
10
other:
222
Each of these files are created periodically.
What I need to do is to merge all of them into one but having the following form: (2 Replies)
SHELL SCRIPT
Hi,
I have 3 separate files within a folder. Every File contains data in a single column like
File1 contains data
mayank
sushant
dheeraj
File2 contains
DSA_AT
MG_AT
FLAT_09
File3 contains data
123123
232323 (2 Replies)
Hello everyone!!
I am not completely new to shell script but I havent been able to find the answer to my problem and I'm sure there are some smart brains here up for the challenge :D.
I have several CSV files that I need to combine into one, but I also need to know where each row came from.... (7 Replies)
Hi,
I need to create a .csv file from information that i have in two different tab delimited .txt file. I just want to select some of the columns of each .txt file and paste them into a .cvs file.
My files look like:
File 1
transcript_id Seq. Description Seq. Length ... (2 Replies)
Hi , I want to compare first 3 columns of File A and File B and create a new file File C which will have all rows from File B and will include rows that are present in File A and not in File B based on First 3 column comparison.
Thanks in advance for your help.
File A
A,B,C,45,46... (2 Replies)
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
Hi, I am newbie in shell script.
I need your help to solve my problem.
Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file.
File1:
SourceFile,DateTimeOriginal
/home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
I am trying to parse two csv files and make a match in one column then print the entire file to a new file and append an additional column that gives description from the match to the new file. If a match is not made, I would like to add "NA" to the end of the file
Command that Ive been using... (6 Replies)
Discussion started by: dis0wned
6 Replies
LEARN ABOUT DEBIAN
rest::application::routes
REST::Application::Routes(3pm) User Contributed Perl Documentation REST::Application::Routes(3pm)NAME
REST::Application::Routes - An implementation of Ruby on Rails type routes.
SYNOPSIS
package MyApp;
use base 'REST::Application::Routes';
my $obj = REST::Application::Routes->new();
$obj->loadResource(
'/data/workspaces/:ws/pages/:page', => &do_thing,
# ... other routes here ...
);
sub do_thing {
my %vars = @_;
print $vars{ws} . " " . $vars{page} . "
";
}
# Now, in some other place. Maybe a CGI file or an Apache handler, do:
use MyApp;
MyApp->new->run("/data/workspaces/cows/pages/good"); # prints "cows good"
DESCRIPTION
Ruby on Rails has this concept of routes. Routes are URI path info templates which are tied to specific code (i.e. Controllers and Actions
in Rails). That is routes consist of key value pairs, called the route map, where the key is the path info template and the value is a
code reference.
A template is of the form: "/foo/:variable/bar" where variables are always prefaced with a colon. When a given path is passed to "run()"
the code reference which the template maps to will be passed a hash where the keys are the variable names (sans colon) and the values are
what was specified in place of the variables.
The route map is ordered, so the most specific matching template is used and so you should order your templates from least generic to most
generic.
See REST::Application for details. The only difference between this module and that one is that this one uses URI templates as keys in the
"resourceHooks" rather than regexes.
METHODS
These are methods which REST::Application::Routes has but its superclass does not.
getTemplateVars()
Returns a hash whose keys are the ":symbols" from the URI template and whose values are what where matched to be there. It is assumed that
this method is called either from within or after "loadResource()" is called. Otherwise you're likely to get an empty hash back.
getLastMatchTemplate()
This is an alias for "getLastMatchPattern()", since this class is about templates rather than regexes.
AUTHORS
Matthew O'Connor <matthew@canonical.org>
LICENSE
This program is free software. It is subject to the same license as Perl itself.
SEE ALSO
REST::Application, <http://manuals.rubyonrails.com/read/chapter/65>
perl v5.10.0 2007-08-09 REST::Application::Routes(3pm)