Is it possible for me to find numbers in a file by a range using grep?
like
cat data | cut -f1 | grep <info>
Im trying to find information and extract every amount that is less than a number (ie less than 75 or whatever)
Is this possible? (2 Replies)
Hi,
I have a question here that need to get advise from all of you. Let say I have a set of data
12347777
12359899
12347677
12360090
12347688
12359979
12359009
12367022
12346677
I need to count the number that appear in each numbering ranges and the output is like below:
Prefix ... (5 Replies)
I have a problem that I cant figure out what to do in this function i need it to count multiple ranges like 0 10, 5 10, 1 100. I know that my counter needs to be outside the function and that it needs to be set to the lowest numbered positional parameter but thats were I am having trouble if... (6 Replies)
Dear Perl users,
I need your help to solve my problem below.
I want to print the sequence number without missing number within the range.
E.g. my sequence number :
1 2 3 4 5 6 7 8 11 12 13 14
my desired output:
1 -8 , 11-14
my code below but still problem with the result:
1 - 14
1 -... (2 Replies)
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Hi, I have a list.txt file with number ranges and want to print/save new all.txt file with all the numbers and between the numbers.
== list.txt ==
65936
65938
65942 && 65943
65945 ... (7 Replies)
I am trying to write a bash script that would be able to read DNA sequences (each line in the file is a sequence) from a file, where sequences are separated by an empty line. I am then to find the amino acid that these DNA sequences encode per codon (each group of three literals.) For example, if I... (3 Replies)
Hi to all,
Please help on the following problem, I'm not where to begin, if awk or shell script.
I have pairs of ranges of numbers and I need to find the root or roots of ranges based on min Range and Max ranges
Example #1:
If min range is 120000 and max ranges 124999, it means that are... (5 Replies)
Hi,
Recently I had to convert a 280K lines of ip ranges to the CIDR notation and generate a file to be used by ipset (netfilter) for ip filtering.
Input file:
000.000.000.000 - 000.255.255.255 , 000 , invalid ip
001.000.064.000 - 001.000.127.255 , 000 , XXXXX
001.000.245.123 -... (10 Replies)
2 scripts to convert IP ranges to CIDR notation using awk, gawk or mawk. The scripts are much faster than using ipcalc and will return the same results. The first script is reliably compatible with awk, gawk and mawk but is over 3 times as slow as the second script which is reliably compatible with... (38 Replies)
Discussion started by: azdps
38 Replies
LEARN ABOUT DEBIAN
unidesc
unidesc(1) General Commands Manual unidesc(1)NAME
unidesc - Describe the contents of a Unicode text file
SYNOPSIS
unidesc ([option flags]) (<file name>)
If no input file name is supplied, unidesc reads from the standard input.
DESCRIPTION
unidesc describes the content of a Unicode text file by reporting the character ranges to which different portions of the text belong. The
ranges reported include both official Unicode ranges and the constructed language ranges within the Private Use Areas registered with the
Conscript Unicode Registry (http://www.evertype.com/standards/csur/). For each range of characters, unidesc prints the character or byte
offset of the beginning of the range, the character or byte offset of the end of the range, and the name of the range. Offsets start from
0.
Since the ASCII digits, punctuation, and whitespace characters are frequently used by other writing systems, by default these characters
are treated as neutral, that is, as not belonging exclusively to any particular character range. These characters are treated as belonging
to the range of whatever characters precede them.
If the input begins with neutral characters, they are treated as belonging to the range of whatever characters follow them. If the file
consists entirely of neutral characters, the range is identified as Neutral followed by Basic Latin in square brackets.
A magic number identifying the Unicode encoding is not part of the Unicode standard, so pure Unicode files do not contain a magic number.
However, informal conventions have arisen for this purpose. If the command line flag -m is given, unidesc will attempt to identify the
Unicode subtype by examining the first few bytes of the input. If the input is identified as one of the two acceptable types, UTF-8 or
native order UTF-32, it will then proceed to describe the contents of the input. Otherwise, it will report what it has learned and exit.
Note that if the file does contain a magic number, you must use the -m flag. Without this flag unidesc assumes that the input consists of
pure Unicode with the character data beginning immediately. It will therefore be thrown off by the magic number.
By default, input is expected to be UTF-8. Native order UTF-32 is also acceptable. UTF-32 may be specified via the command line flag -u
or, if the command line flag -m is given, via the magic number.
COMMAND LINE FLAGS -b Give file offsets in bytes rather than characters.
-d Treat the ASCII digits as belonging exclusively to the Basic Latin range.
-h Print usage information.
-L List the Unicode ranges alphabetically.
-l List the Unicode ranges by codepoint.
-m Check the file's magic number to determine the Unicode subtype.
-p Treat ASCII punctuation as belonging exclusively to the Basic Latin range.
-r Instead of listing ranges as they are encountered, just list the ranges detected after all input has been read.
-u Input is native order UTF-32.
-v Print version information.
-w Treat ASCII whitespace as belonging exclusively to the Basic Latin range.
SEE ALSO
uniname
REFERENCES
Unicode Standard, version 5.0
AUTHOR
Bill Poser
billposer@alum.mit.edu
LICENSE
GNU General Public License
June, 2007 unidesc(1)