10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Experts,
I'm having problems with the code below.
I'm trying to test $var2 for two different regexs.
I thought it could be done per below, but I'm getting the following error when running.
$ ./test.pl b fed50c0100****
Unescaped left brace in regex is deprecated, passed through in regex; marked... (2 Replies)
Discussion started by: timj123
2 Replies
2. Shell Programming and Scripting
I am trying to match mulitple (3) variables. I found the sub given below on the web which works well when all vars are defined. But there are situations where one or two will not be defined (at least one will always be defined.)
Example of the variable content possibilities
The sub found... (4 Replies)
Discussion started by: popeye
4 Replies
3. Shell Programming and Scripting
Hi,
I have code like:
Output it is comming as:
Rels: WM2
Rels: WG2
Rels: 5
- pre/prods.pl
Rels: 6
Rels: 7
Rels: 8
Rels: 10
Rels: Int
But i want only "Rels: 5" pattern Just above "- pre/prods.pl".
By... (7 Replies)
Discussion started by: Anjan1
7 Replies
4. Programming
Hi , i'm trying to find lines in a file that have 2 matches,but i have trouble with regex -it doesn't search for a second string-please help
#!/usr/bin/perl -w
use strict;
use warnings;
my $log = "log";
my $log_string = "grep '^8=' $log |";
usage ();
chomp (my $TAB_1 = $ARGV);
chomp (my... (2 Replies)
Discussion started by: auto_w
2 Replies
5. Programming
Dear Perl Experts,
Could some body help me to find the solution for my problem below:
Input file:
-----------
THE-0 tsjp
THE-32 tsjp
THE-64 tsjp
Output desired:
---------------
THE-0&&-31 tsjp
THE-32&&-63 tsjp
THE-64&&-95 tsjp
Note:
31 = 0+31, (2 Replies)
Discussion started by: askari
2 Replies
6. Shell Programming and Scripting
Hi All,
I need your help to solve problem using either PERL script or SHELL script.
We are receving a file, in which one record is coming in multiple rows. The main problem is, we are not able to differenciate when the 1st record ends and where the second record starts.
For example,
... (4 Replies)
Discussion started by: Amit.Sagpariya
4 Replies
7. Shell Programming and Scripting
Hello,
I would like to write a perl script which executes several jobs. The key thing is I only want 4 jobs to be executed at one time (that's because my machine as 4 cpu, and I want one job per cpu). Is there any way that I can get perl to co-operate with me in this?
Thanks! (1 Reply)
Discussion started by: amcrisan
1 Replies
8. UNIX for Dummies Questions & Answers
I have a text file that contains lines similar to the following:
-----------------------------------------------------------
fall for setup
CSHRC0 'gnd';
CSHR0 'gnd';
rise for setup
rise for hold
CSHRC0 'gnd';
CSHR0 'gnd';
fall for hold ... (4 Replies)
Discussion started by: EDALBNUG
4 Replies
9. Shell Programming and Scripting
I found this logging subroutine on the net that I want to use but despite trying many things, I cannot figure out how to get the date in front of the logged text. Ideally what I'm looking for is a line that looks something like this:
Wed Aug 20 18:17:29 PDT 2008 - my logging info here.
my... (2 Replies)
Discussion started by: gctaylor
2 Replies
10. HP-UX
This will undoubtedly seem like a problem that should be easily resolved but...
We are having some 'issues' getting multiple versions of Perl installed on our HP-UX servers (11.11 & 11.23). Now, I'm not a Sys Admin but I believe the reason behind this is that the Perl installation which comes... (2 Replies)
Discussion started by: Macer
2 Replies