The 1 from the number 10 is found WITHIN a string of 138 matched elements and the 0 from 10 will be WITHIN a string of 139 matches.
There is no anchor that says that ABC is the start of the line, but the start of the matched string.
I do not see how it can work with what you said:
Quote:
'ABC' with value 10 at the 134 position
In that case, it would be something like grep -E '^ABC.{130}(1[01]|2[056])' *
Last edited by rbatte1; 11-29-2016 at 05:35 AM..
Reason: Corrected CODE tags
Hi All,
My shell script will call a java component with some arguments , the java component returns a string value to the shell script. How to assign the return value to the shell variable.
Here is the sample code.
In my shell script i am calling the java as fallows.
--exporting... (1 Reply)
Hi all,
I have a huge csv file with the following format of data,
Num SNPs, 549997
Total SNPs,555352
Num Samples, 157
SNP, SampleID, Allele1, Allele2
A001,AB1,A,A
A002,AB1,A,A
A003,AB1,A,A
...
...
...
I would like to write out a list of unique SNP (column 1). Could you... (3 Replies)
Hi,
I'm fairly new to UNIX, but hopefully some-one can help me with this:
I am using the following code to find files with the name "example.xml":
find . -name "example.xml" -print
that would print me a list like the example here:
./dir1/dir2/example.xml... (5 Replies)
done some homework on this--
after i remove up to and including the ) i want to take newfile.txt and use that list to remove the files from a file in my the directory pwd
i have a input.txt file
cat input,txt
1)mary.jpg
12)john.jpg
100)frankkfkdf .jpg
i want to remove the characters in the... (1 Reply)
I have a list of strings, for example:
set strLst = "file1 file2 file3 file4"
I want to log an error if some of the fields happen to begin with -, or have characters like ; : ' , ? ] { =
Which means for example setting
set ierr = 1 (2 Replies)
Hi I have a function :
Make_Report()
{
trx_report=`sqlplus -s $conn_str << @@
set echo off;
set pages 0;
set feedback off;
set verify off;
select srv_trx_s_no,... (1 Reply)
hi
my problem is little complicated one. i have 2 files which appear like this
file 1
abbsss:aa:22:34:as akl abc 1234
mkilll:as:ss:23:qs asc abc 0987
mlopii:cd:wq:24:as asd abc 7866
file2
lkoaa:as:24:32:sa alk abc 3245
lkmo:as:34:43:qs qsa abc 0987
kloia:ds:45:56:sa acq abc 7805
i... (5 Replies)
Hello all,
I have a directory with 2000+ files. I need to look in each file for an invoice number. To identify this, i can search for the string 'BIG' and then retrieve the next 30 characters. I was thinking awk for this, but not sure how to do it. Each file contains one long string and in... (8 Replies)
I am trying to have the user select two files from a numbered list which will eventually be turned into a variable then combined. This is probably something simple and stupid that I am doing.
clear
echo "Please Select the Show interface status file"
select FILE1 in *;
echo "Please Select the... (3 Replies)
Discussion started by: dis0wned
3 Replies
LEARN ABOUT REDHAT
nbpunrgstr
NBP(1) General Commands Manual NBP(1)NAME
nbplkup, nbprgstr, nbpunrgstr - access NBP database
SYNOPSIS
nbplkup [ -r nresp ] [ nbpname ]
nbprgstr [ -p port ] nbpname
nbpunrgstr nbpname
DESCRIPTION
nbprgstr registers nbpname with atalkd(8), at the given port. nbpunrgstr informs atalkd that nbpname is no longer to be advertised.
nbplkup displays up to nresp (default 1000) entities registered on the AppleTalk internet. nbpname is parsed by nbp_name(3). An `=' for
the object or type matches anything, and an `*' for zone means the local zone. The default values are taken from the NBPLKUP environment
variable, parsed as an nbpname.
EXAMPLE
Find all devices of type LaserWriter in the local zone.
example% nbplkup :LaserWriter
Petoskey:LaserWriter 7942.129:218
Gloucester:LaserWriter 8200.188:186
Rahway:LaserWriter 7942.2:138
517 Center:LaserWriter 7942.2:132
ionia:LaserWriter 7942.2:136
Evil DEC from Hell:LaserWriter 7942.2:130
Hamtramck:LaserWriter 7942.2:134
Iron Mountain :LaserWriter 7942.128:250
example%
SEE ALSO nbp_name(3), atalkd(8).
netatalk 1.2 17 Dec 1991 NBP(1)