script in perl for removing strings between a file
I have file that looks like:
I have to remove "TER", the line before "TER" and 3 lines after the line just after TER and make file continuous like this:
Last edited by Franklin52; 10-19-2011 at 10:37 AM..
Reason: Please use code tags for data and code samples, thank you
In perl I want to do remove the top line of my input file then process the next line. I want to do something like
head -1 inputfile > temp
grep -v temp inputfile > newinputfile
cp newinputfile inputfle
is this possible in perl? (3 Replies)
I have a matrix , how do I compare all the elements of a column , lets say I want to check if the columns contain the alphabets "S","H","A","R","A","T".
and not "X"s.
Lets say matrix looks something like this ..
SSSXSH
HHXXHA
AAXXAT
RRRXRS
AAXTAR
TTTTTA
I can hard code it where... (4 Replies)
Hello,
I have a file that lists a few hundred values.
Example:
abca
abcb
abcc
abcd
I have a 2nd file with a few thousand lines. I need to remove every line from the 2nd file that contains any of the values listed in first file.
Example of strings to delete:
line1 *abca* end of... (1 Reply)
Hi Folks,
The subject is my question:
Can we pass an array of strings from a Perl Program to a Shell Script?
Please provide some sample code.
Thanks
---------- Post updated at 11:52 PM ---------- Previous update was at 11:43 PM ----------
I got it.
Its here:... (0 Replies)
Dear all,
I have a variable called $abc, which the value is something like below,
*** *********** : *****
where * can be anything. I need to remove all but the final characters until last whitespace.
example
grd groupstudy : tutor6/7
becomes tutor6/7
something like
if... (2 Replies)
HI all,
These are examples of the original value from a variable
$abc can be
FastEthernet1/0
GigabitEthernet3/1
Serial1/0
If $abc is FastEthernet*/* (where * can be any number), replace $abc value to fa*/* (same number as the original value). GigabitEthernet becomes ga*/* and Serial... (2 Replies)
Hello,
I have a huge file of over 2,00,00,00 strings in UTF8 format. I have managed to write a script in Perl which sorts them neatly as per their Unicode ranges.
However I am now stuck with a script which will pipe out all strings between 3 and 20 letters/characters. I am not very good at... (2 Replies)
Hi folks,
I have a log file in the below format and trying to get the output of the unique ones based on mnemonic IN PERL.
Could any one please let me know with the code and the logic ?
Severity Mnemonic Log Message
7 CLI_SCHEDULER Logfile for scheduled CLI... (3 Replies)
Perl script to merge cells
---------- Post updated at 12:59 AM ---------- Previous update was at 12:54 AM ----------
I am using below code to read files from a dir and print to excel.
open(my $in, '<', $file) or die "Could not open file: $!";
my $rowCount = 0;
my $colCount = 0;... (11 Replies)
Hi team,
I'm a newbie of Perl Script and looking to create a simple perl script that will run in the Linux system:
1) to find process, such as ps -ef | grep process name
2) to exclude strings from the output if it found, for instance if i see abc from usr process, then will exclude it from... (1 Reply)
Discussion started by: hoffman2503
1 Replies
LEARN ABOUT DEBIAN
edje_cc
EDJE_CC(1) The edje compiler EDJE_CC(1)NAME
edje_cc - an edje compiler
SYNOPSIS
edje_cc [OPTIONS] input_file.edc [output_file.edj]
DESCRIPTION
edje_cc is a compiler for edje files
EXAMPLES
edje_cc -v file.edc
OPTIONS -id image/directory Add a directory to look in for relative path images
-fd font/directory Add a directory to look in for relative path fonts
-v Verbose output
-no-lossy Do NOT allow images to be lossy
-no-comp Do NOT allow images to be stored with lossless compression
-no-raw Do NOT allow images to be stored with zero compression (raw)
-min-quality VAL Do NOT allow lossy images with quality < VAL (0-100)
-max-quality VAL Do NOT allow lossy images with quality > VAL (0-100)
-Ddefine_val= to CPP style define to define input macro definitions to the .edc source
SEE ALSO edje_decc(1)edje_recc(1)BUGS
Please reports bugs to the Pkg-E Team <pkg-e-devel@lists.alioth.debian.org>
AUTHOR
This man page was written by Ronald Claveau for the Debian GNU/Linux system (but may be used by others).
0.5.0.042 Jan 29, 2007 EDJE_CC(1)