02-17-2008
head usage
$ct=1
head -n $ct file.
When i used like this, i got an error , Bad usage of head
Cant we use variables in place of number in HEAD.
In my requirement for every iteration i should increase the number in Head and tail the last one.
HOw can i achieve this
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
my boss has done it again
I have been sent to fix a unix issue
and I ma hoping you can help
three issues
1st. I have a printer that when you try to print to it the print job comes out on a diffrent printer. If I take the printer ( dot matrix thourgh a serail connection) to a diffrent local the... (3 Replies)
Discussion started by: oberon42
3 Replies
2. Programming
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
3. Shell Programming and Scripting
Hi All,
How can the head command be used to extract only a particular line.
By default head -n filename displays the first n lines. I want only the nth line.
I couldn't get it from forum search.
Thanks,
Sumesh (6 Replies)
Discussion started by: sumesh.abraham
6 Replies
4. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
5. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
6. Shell Programming and Scripting
I know that the common use of head is for example head -3 etc.Is there any possibility that,if i have a variable that equals to an integer(i=5),i can write head -i??
If not,what syntax or commands should i write down in order to have the same result?
//maybe something lik head -"$variable" ? (2 Replies)
Discussion started by: bashuser2
2 Replies
7. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
8. UNIX for Dummies Questions & Answers
i have lots of files in /law/prod and /law/dev, such as AP20PD, AP20WS, AP20.scr, AP20.rpt
if i am in /law DIR
find . -name AP20PD, found in /law/prod and /law/dev
i want to head -1 AP20PD from both location and >> /tmp/test.log
can i use find and head in one line ?
----------... (1 Reply)
Discussion started by: tjmannonline
1 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.
df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>
But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies
10. UNIX for Dummies Questions & Answers
Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 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)