Sponsored Content
Top Forums Shell Programming and Scripting grabbing specific column perl Post 302320005 by ghostdog74 on Tuesday 26th of May 2009 10:10:39 PM
Old 05-26-2009
you are calling perl again inside your perl script. if you want to remove the slash, use s///g syntax.
check perldoc perlretut
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Insert a text from a specific row into a specific column using SED or AWK

Hi, I am having trouble converting a text file. I have been working for this whole day now, still i couldn't make it. Here is how the text file looks: _______________________________________________________ DEVICE STATUS INFORMATION FOR LOCATION 1: OPER STATES: Disabled E:Enabled ... (5 Replies)
Discussion started by: Issemael
5 Replies

2. Shell Programming and Scripting

Assigning a specific format to a specific column in a text file using awk and printf

Hi, I have the following text file: 8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm 9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm 10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm 11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Discussion started by: goodbenito
2 Replies

3. Shell Programming and Scripting

parsing filename and grabbing specific string patterns

Hi guys...Wow I just composed a huge post and it got erased as I was logged out automatically Anyways I hope someone can help me out here. So the task I'm working on is like this I have a bunch of files that I care about sitting in a directory say $HOME/files Now my job is to go and loop... (6 Replies)
Discussion started by: rukasetsuna
6 Replies

4. Shell Programming and Scripting

Grabbing web forms with Perl

Hello Everyone, I've googled everywhere for this with no luck and my brain hurts. I'm trying to write a program to take my webpages and search for forms. I've used LWP::Simple to store a website in $content I need to cut the form out of $content. I don't know how to do this seeing as how... (2 Replies)
Discussion started by: wibbs
2 Replies

5. Shell Programming and Scripting

Count specific characters at specific column positions

Hi all, I need help. I have an input text file (input.txt) like this: 21 GTGCAACACCGTCTTGAGAGG 50 21 GACCGAGACAGAATGAAAATC 73 21 CGGGTCTGTAGTAGCAAACGC 108 21 CGAAAAATGAACCCCTTTATC 220 21 CGTGATCCTGTTGAAGGGTCG 259 Now I need to count A/T/G/C numbers at each character location in column... (2 Replies)
Discussion started by: thienxho
2 Replies

6. Shell Programming and Scripting

Grabbing fields with perl

I have several .csv files containing data like this: field_1;field_2;date;comment;amount; I want to extract the 3 last fields and load them in a database. my input_file = "/dir/file.csv"; my output_file = "/dir/file.sql"; open my $csv_file, '<', $input_file or die "Can't... (1 Reply)
Discussion started by: freddie50
1 Replies

7. Shell Programming and Scripting

Converting Single Column into Multiple rows, but with strings to specific tab column

Dear fellows, I need your help. I'm trying to write a script to convert a single column into multiple rows. But it need to recognize the beginning of the string and set it to its specific Column number. Each Line (loop) begins with digit (RANGE). At this moment it's kind of working, but it... (6 Replies)
Discussion started by: AK47
6 Replies

8. Shell Programming and Scripting

How to print multiple specific column after a specific word?

Hello.... Pls help me (and sorry my english) :) So I have a file (test.txt) with 1 long line.... for example: isgc jsfh udgf osff 8462 error iwzr 653 idchisfb isfbisfb sihfjfeb isfhsi gcz eifh How to print after the "error" word the 2nd 4th 5th and 7th word?? output well be: 653 isfbisfb... (2 Replies)
Discussion started by: marvinandco
2 Replies

9. Shell Programming and Scripting

Overwrite specific column in xml file with the specific column from adjacent line

I have an xml file dumped from rrd file, that I want to "patch" so the xml file doesn't contain any blank hole in the resulting graph of the rrd file. Here is the file. <!-- 2015-10-12 14:00:00 WIB / 1444633200 --> <row><v> 4.0419731265e+07 </v><v> 4.5045912770e+06... (2 Replies)
Discussion started by: rk4k
2 Replies

10. Shell Programming and Scripting

Using awk to change a specific column and in a specific row

I am trying to change the number in bold to 2400 01,000300032,193631306,190619,0640,1,80,,2/ 02,193631306,000300032,1,190618,0640,CAD,2/ I'm not sure if sed or awk is the answer. I was going to use sed and do a character count up to that point, but that column directly before 0640 might... (8 Replies)
Discussion started by: juggernautjoee
8 Replies
Test::NoTabs(3) 					User Contributed Perl Documentation					   Test::NoTabs(3)

NAME
Test::NoTabs - Check the presence of tabs in your project SYNOPSIS
"Test::NoTabs" lets you check the presence of tabs in your perl code. It report its results in standard "Test::Simple" fashion: use Test::NoTabs tests => 1; notabs_ok( 'lib/Module.pm', 'Module is tab free'); Module authors can include the following in a t/notabs.t and have "Test::NoTabs" automatically find and check all perl files in a module distribution: use Test::NoTabs; all_perl_files_ok(); or use Test::NoTabs; all_perl_files_ok( @mydirs ); DESCRIPTION
This module scans your project/distribution for any perl files (scripts, modules, etc) for the presence of tabs. EXPORT
A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module. FUNCTIONS
all_perl_files_ok( [ @directories ] ) Applies "notabs_ok()" to all perl files found in @directories (and sub directories). If no <@directories> is given, the starting point is one level above the current running script, that should cover all the files of a typical CPAN distribution. A perl file is *.pl or *.pm or *.t or a file starting with "#!...perl" If the test plan is defined: use Test::NoTabs tests => 3; all_perl_files_ok(); the total number of files tested must be specified. notabs_ok( $file [, $text] ) Run a tab check on $file. For a module, the path (lib/My/Module.pm) or the name (My::Module) can be both used. AUTHOR
Nick Gerakines, "<nick at socklabs.com>" BUGS
Please report any bugs or feature requests to "bug-test-notabs at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-NoTabs>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Test::NoTabs You can also look for information at: o AnnoCPAN: Annotated CPAN documentation <http://annocpan.org/dist/Test-NoTabs> o CPAN Ratings <http://cpanratings.perl.org/d/Test-NoTabs> o RT: CPAN's request tracker <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-NoTabs> o Search CPAN <http://search.cpan.org/dist/Test-NoTabs> ACKNOWLEDGEMENTS
Inspired by some code written by Paul Lindner. Test::Strict was used as an example when creating this module and distribution. Rick Myers and Emanuele Zeppieri also provided valuable feedback. Patch to fix warnings provided by Florian Ragwitz (rafl) Currently maintained by Tomas Doran (t0m) "bobtfish@bobtfish.net" SEE ALSO
Test::More, Test::Pod. Test::Distribution, <Test:NoWarnings> COPYRIGHT &; LICENSE Copyright 2006 Nick Gerakines, 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.16.3 2012-06-25 Test::NoTabs(3)
All times are GMT -4. The time now is 09:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy