I'm writing a script that at one point needs to check the contents of another script's log file to determine how to proceed. An example record from the log file is:
"mcref04152006","060417","ANTH0415","282","272","476,983.37","465,268.44","loaded"
I want my script to return this record if:
... (3 Replies)
Hi all
I have a little brainscratcher here.
I want to draw a pie chart from data in a text file.
The drawing of the graph works fine, if I insert the data manually into a 2d array.
Now I want to pull the data from a text file (which was created using a uniq -c command) see sample below.... (2 Replies)
Hi Guys I have a question about filling up an array
I have a file called USER_FILE.txt
it contains the following:
Real Name:Thomas A Username:THOMAS_A
Real Name:Thomas B Username:THOMAS_B
Real Name:Thomas C Username:THOMAS_C
Real Name:Thomas D Username:THOMAS_D
Real Name:Thomas E... (8 Replies)
I've done quite a bit of searching on this but cannot seem to find exactly what I'm looking for. Say I have a | delimited input file with 6 columns and I need to change the value of a few columns and create an output file. With my limited knowledge I can do this with many lines of code but want... (5 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a template main.c file via shell script to make it easier for yourself later.
The issue here isn't writing... (2 Replies)
Hi,
I am not so familiar with bash scripting and would appreciate your help here.
I have a text file 'input.txt' like this:
2 3 4
5 6 7
8 9 10
I want to store each column in an array like this
a ={2 5 8}, b={3 6 9}, c={4 7 10}
so that i can access any element, e.g b=6 for the later use. (1 Reply)
I have a list of files defined in a single file , one on each line.(No.of files may wary each time)
eg. content of ETL_LOOKUP.dat
/data/project/randomname
/data/project/ramname
/data/project/raname
/data/project/radomname
/data/project/raame
/data/project/andomname
size of these... (5 Replies)
I have one array SPLNO with approx 10k numbers.Now i want to search the subscriber number from MDN.TXT file (containing approx 1.5 lac record)from the array.if subscriber number found in array it will perform below operation.my issue is that it's taking more time because for one number it's search... (6 Replies)
Shell: sh/bash
OS: Linux (all unix flavors)
Suppose i have a variable with this content:
ArgZ='
import os
import sys
MySpecialpath = os.path.abspath(sys.argv)
#
'
ArgZB='#REGEN
#REGEN
#REGEN
'
I want to add this text to a file/script, only under the following conditions:
1. ... (1 Reply)
Discussion started by: SkySmart
1 Replies
LEARN ABOUT DEBIAN
app::repl
App::REPL(3pm) User Contributed Perl Documentation App::REPL(3pm)NAME
App::REPL - A container for functions for the iperl program
VERSION
Version 0.01
SYNOPSIS
This module contains functions that the iperl program automatically imports into any package it enters, for interactive convenience.
Please see the README for general information.
EXPORT FUNCTIONS
x
Print arguments with "Data::Dumper::Dumper"
p
Print arguments with "print"
env
Return a hashref containing the (stored -- not current) lexical environment.
ret
Return a reference to the value of the previous evaluation -- that is, a reference to whatever irepl printed after the last Perl you
evaluated. This function will probably evolve to take an argument $n, to return the $n'th previous result.
rdebug ($value)
With no arguments, bump $REPL::DEBUG. With an argument, set $REPL::DEBUG to that. This is for debugging iperl itself; currently at 1 it
shows eval'd code, and at 2 it dumps the PPI document corresponding to entered code.
help (commands)
With no arguments, print a brief message. With an argument, either print corresponding help or -- in the case of 'commands', currently the
only optional argument -- call perldoc appropriately.
AUTHOR
Julian Fondren, "<ayrnieu@cpan.org>"
BUGS
Does not reliably report errors in eval'd code.
Does not try hard enough to collect a return value from eval'd code.
Makes probably dangerous use of PPI.
Please report any bugs or feature requests to "bug-app-repl@rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-REPL>. I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
VERSION CONTROL
A subversion repository with anonymous checkout exists at http://OpenSVN.csie.org/app_repl , and you can also browse the repository from
that URL with a web browser.
COPYRIGHT & LICENSE
Copyright 2007 Julian Fondren, 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.10.1 2007-04-10 App::REPL(3pm)