09-23-2008
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
as the title, I had try use "wc -l test.txt" but it give me "<many spaces> 384 test.txt" but the result I want is just "384" could any person can help me that?
Thx:( (5 Replies)
Discussion started by: a8111978
5 Replies
2. UNIX for Dummies Questions & Answers
Dear users,
I need to count the number of lines in a simple text file and print the number on the first line of that same file.
I know I can count the lines using
wc -l file.txt
this gives for example
100 file.txt
I need the number 100 to be printed at the very top of file.txt... (2 Replies)
Discussion started by: jenjen_mt
2 Replies
3. Shell Programming and Scripting
Hi,
A very Good Evening to All,
I am writing a script for my application. I have a file with 1000 lines. Among that 1000 lines i am searching for a particular string. And from that string i need to pull all the data in to a seperate file.
For example the contents of my file is as below.
... (4 Replies)
Discussion started by: intiraju
4 Replies
4. UNIX for Dummies Questions & Answers
I am trying to print a simple ascii file but it comes out as a staggered output. I know there's a simple solution but can't remember it, am a little rusty.
eg. a file that look like
aa
bbb
cccc
would print out like
aa
bbb
ccccc
Any pointers would be... (5 Replies)
Discussion started by: lordvoldemort
5 Replies
5. UNIX for Dummies Questions & Answers
Assume that the text file contains over 40 lines. How do you do this?!?!? (5 Replies)
Discussion started by: phunkypants
5 Replies
6. Shell Programming and Scripting
Hello,
I want to print a number of lines of a file after a specific expression of a line.
I have this sed command but it prints only 1 line after the expression.
How could I adapt it to print for instance 10 lines after or 15 lines after ?
sed -n '/regexp/{n;p;}'
Thx & Regs,
Rany. (5 Replies)
Discussion started by: rany1
5 Replies
7. UNIX for Dummies Questions & Answers
hay i need to display middle line:
1
2
3
4
5
how can i display 3-4? (6 Replies)
Discussion started by: margan_ron
6 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to auto generate some php files with a default preamble at the top which is a block comment.
The problem is that my output has no new lines and it looks like the output from "ls" is being printed after everyline
This is my code
#!/bin/bash
read -d '' pre_amble... (1 Reply)
Discussion started by: racshot65
1 Replies
9. Shell Programming and Scripting
Hi guys,
I was wondering if there was an easy solution, using tcsh, to print out lines that appear twice with a given pattern in a file?
So if I am looking for lines with "test" in a given file that contains:
blah
test blah1
blah //don't print this out as it doesn't have... (3 Replies)
Discussion started by: chu816
3 Replies
10. Shell Programming and Scripting
Hi !
I need some help with a script I am writing.
I am trying to compare two files, the first file being in this format :
Header1
Text1-1
Text1-2
Text1-3
Header2
Text2-1
etc...
For each header, I want to check if it appears in the second file, and if it is the case print the header... (4 Replies)
Discussion started by: jbi
4 Replies
LEARN ABOUT DEBIAN
font::ttf::head
Font::TTF::Head(3pm) User Contributed Perl Documentation Font::TTF::Head(3pm)
NAME
Font::TTF::Head - The head table for a TTF Font
DESCRIPTION
This is a very basic table with just instance variables as described in the TTF documentation, using the same names. One of the most
commonly used is "unitsPerEm".
INSTANCE VARIABLES
The "head" table has no internal instance variables beyond those common to all tables and those specified in the standard:
version
fontRevision
checkSumAdjustment
magicNumber
flags
unitsPerEm
created
modified
xMin
yMin
xMax
yMax
macStyle
lowestRecPPEM
fontDirectionHint
indexToLocFormat
glyphDataFormat
The two dates are held as an array of two unsigned longs (32-bits)
METHODS
$t->read
Reads the table into memory thanks to some utility functions
$t->out($fh)
Writes the table to a file either from memory or by copying. If in memory (which is usually) the checkSumAdjustment field is set to 0 as
per the default if the file checksum is not to be considered.
$t->XML_element($context, $depth, $key, $value)
Handles date process for the XML exporter
$t->update
Updates the head table based on the glyph data and the hmtx table
$t->getdate($is_create)
Converts font modification time (or creation time if $is_create is set) to a 32-bit integer as returned from time(). Returns undef if the
value is out of range, either before the epoch or after the maximum storable time.
$t->setdate($time, $is_create)
Sets the time information for modification (or creation time if $is_create is set) according to the 32-bit time information.
BUGS
None known
AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing.
perl v5.10.1 2009-01-29 Font::TTF::Head(3pm)