Hi,
I would like to know how can I get lines from a text file that match no more than 2 '>'. Example:
Input file:
a >cr1 4 a>b b>c
a >cr2 5 a>b
Output file:
a >cr2 5 a>b
Thanks in advance (2 Replies)
Following are the lines from /etc/sudoers.conf
bob SPARC = (OP) ALL : SGI = (OP) ALL
fred ALL = (DB) NOPASSWD: ALL
ALL CDROM = NOPASSWD: /sbin/umount /CDROM,\
/sbin/mount -o nosuid\,nodev /dev/cd0a /CDROM
Could you please help me with shell/perl script to display the records
with... (2 Replies)
Hi,
I'm looking for a command to retrieve a block of lines using sed or grep, probably awk if that can do the job.
In below example,
By searching for words "Third line2" i'm expecting to retrieve the full block starting with 'BEGIN' and ending with 'END' of the search.
Example:
... (3 Replies)
Plz tel me how to retrieve some specific set of lines from a file and store it in a char buffer.I am seperating each record by ":"
22:abc:4
hardware:cd:xyz:2
hardware:eth:abc:6
hardware:mouse:xyz:3
hardware:ram:xyz:1
23:cde:3
hardware:cd:xyz:2
hardware:eth:abc:6
hardware:ram:xyz:1
... (3 Replies)
I have a text file names test2 with 3 columns as below . We have to retrieve the distinct values (not duplicate) from 2nd column and display. I have used the below command but giving some error.
NS3303 NS CRAFT LTD
NS3303 NS CHIRON VACCINES LTD
NS3303 NS ALLIED MEDICARE LTD
NS3303 NS... (16 Replies)
Hey, guys!
I am trying to retrieve lines from a file in a given date range. I tried using sed -n "/${SDATE}/,/${EDATE}/p" ~/webhits/$FILE | wc -l but that doesn't work if the starting or the end date do not match exactly. If both dates match, there are no problems (for example 25 March 2008 -... (5 Replies)
Hi, all:
I am not familiar with unix,and just started awk scripts. I want to retrieve lines that have the first 4 columns with different values. For example, the input is like this (tab delimited file with one header)
r1 A A A A x
r2 A B B A x
r3 B B B B x
the output should be (header is... (15 Replies)
Hi Everyone,
I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file? Please let me know what is the awk command for this?
Regards
Rakesh (1 Reply)
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:
I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file?... (6 Replies)
Discussion started by: rakeshp
6 Replies
LEARN ABOUT DEBIAN
ttfdump
TTFDUMP(1) General Commands Manual TTFDUMP(1)NAME
ttfdump - Dumping the contents of a TrueType Font file
SYNOPSIS
ttfdump [-h] [-t tablename] [-g glyphnumber] [-c collection] [-o dumpfile] [-i] ttfile
DESCRIPTION
ttfdump dumps the contents of a TrueType font file in ASCII form. A TrueType font file is consist of various tables. Those table are
divided into two categories - Required Tables and Optional Tables. Mulitiple TrueType fonts can be merged to a TrueType Collection.
Options
-h Print a help message on standard output and exit.
-t tablename
If this option is specified then dump the table "tablename", otherwise dump every tables in ttfile. Tablename can be one of the
following:
Required Tables
cmap character to glyph mapping table
glyf glyph data
head font header
hhea horizontal header
hmtx horizontal metrics
loca index to location
maxp maximum profile
name naming table
post PostScript information
OS/2 OS/2 and windows specific metrics
Optional Tables
cvt control value table
fpgm font program; not implemented yet.
gasp grid-fitting and scan conversion procedure (grayscale)
hdmx horizontal device metrics
kern kerning table
LTSH Linear threshold table
prep CVT program; not implemented yet
PCLT PCL5 table
VDMX Vertical Device Metrics table
vhea vertical metrics header
vmtx vertical metrics
Additional OpenType Tables
GPOS glyph positioning table
GSUB glyph substitution table
-g glyphnumber
If this option is specified then dump the glyph with index glyphnumber, otherwise dump all glyphs in ttfile.
-c collection
Select a TrueType font in a TrueType Collection.
-o dumpfile
Output of the dump. If this option is not specified, dump to stdout.
-i ttfile
TrueType font file to be dumped.
EXAMPLE
To dump all information in the TrueType font file times.ttf:
ttfdump times.ttf
To dump the required table cmap in the file:
ttfdump -t cmap times.ttf
To dump a single glyph with index 50:
ttfdump -g 50 times.ttf
SEE ALSO
TrueType 1.0 Font Files, Technical Specification Revision 1.66 November 1995
NOTE
Instruction disassembler in not implemented.
AUTHOR
Li-Da Lho, ollie@ms1.hinet.net
ILX Project 14 November 2011 TTFDUMP(1)