Sponsored Content
Top Forums UNIX for Dummies Questions & Answers tail command in SUN & HP_unix Post 20963 by Kelam_Magnus on Wednesday 8th of May 2002 11:31:59 AM
Old 05-08-2002
no need for -n in HPUX for tail/head command...

BTW, You don't have to use the -n option for HPUX. I haven't used the -n option for several years, on either "head" or "tail" commands...

Are you using an old version of HPUX? 10.10 or older???

Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Implementing MORE,HEAD & TAIL

hai in my shell script i want to replace the following commands 1) more 2) head 3) tail i want to try all type of possible options avaliabul in the above commands please help in implementing those commands (9 Replies)
Discussion started by: g_s_r_c
9 Replies

2. UNIX for Dummies Questions & Answers

head & tail

I've a major file which includes other files and now I wanna 'cut' the file in several minor parts....like .... find / -name "*.tmp" >filea wc -l filea >fileb sed -e '1s/ filea//' fileb >filec AMOUNT=`cat filec` if ; then cat file a |head -100l (ell) |tail -100l >filec cat file a |head... (6 Replies)
Discussion started by: svennie
6 Replies

3. Shell Programming and Scripting

tail command..

I was wondering how can I do this I have file myfile.txt wc -l is: 5 000 000 I have to remove first 1 000 000 lines from header.. I tryed with tail -4000000 myfile.txt>newfile.txt but it does not work... any help?? (2 Replies)
Discussion started by: amon
2 Replies

4. HP-UX

sending mail using HP_Unix

hi, I got stuckup with the issue of sending mail with attachment from HP-UX. Can any one please help me in resolving the issue. I am giving the criteria which i want below, 1. To address. 2. Cc address. 3. Subject 4. File attachment(the file i am using is :-- filename_`date... (1 Reply)
Discussion started by: medisetti
1 Replies

5. UNIX for Advanced & Expert Users

Help: Sun Disk partitioning for Sun V240 & StorEdge 3300

Dear Sun gurus, I have Sun Fire V240 server with its StorEdge 3300 disk-array. Following are its disks appeared in format command. I have prepared its partitions thru format and metainit & metattach (may be i have made wrong steps, causing the errors below because I have done thru some document... (1 Reply)
Discussion started by: shafeeq
1 Replies

6. Shell Programming and Scripting

Help with tail command

Hi All, My query seems to be silly but Iam unable to find where the exact problem lies. I have a script to unzip set of files here is the script #!/bin/ksh Count=`cat /home/gaddamja/Tempfile | wc -l` while do Filename=`cat /home/gaddamja/Tempfile |tail -$Count | head -1` cd... (7 Replies)
Discussion started by: jagadish_gaddam
7 Replies

7. Shell Programming and Scripting

Averaging in increments using awk & head/tail

Hi, I only have a very limited understanding and experience with writing code and I was hoping I could get some help. I have a dataset of two columns (txt format, numbers in each row separated by a tab) Eg. 1 5 2 5 3 6 4 7 5 6 6 6 7 ... (5 Replies)
Discussion started by: Emred_Skye
5 Replies

8. Shell Programming and Scripting

How to use command tail -f & show line number.

Hello Guys, I have created function which is as follow: tail -f filename |grep "Key word" output from this command 19-11-2011 21:09:15,234 - INFO Numbement - error number:result = :11 19-11-2011 21:09:15,286 - INFO Numbement - error number:result = :11 19-11-2011 21:09:15,523 - INFO... (5 Replies)
Discussion started by: ooilinlove
5 Replies

9. Shell Programming and Scripting

How do i use tail & grep in real time here??

Hi I have a file which is updated very frequently. Where in i wanted to use tail -f command in the script and wanted to grep for a particular word. But the issue is when i use tail -f filename|grep "word" ... it will show me blank until the word is found in the real time. if it shows... (13 Replies)
Discussion started by: nikhil jain
13 Replies

10. UNIX for Beginners Questions & Answers

Tail -f Command help

Hi Team, Can anyone help me here: I have to access server logs via putty and these logs file is a trailing file (continously updating) with ERROR and WARNINGS... I need to know if I can pull this trailing file to a local drive so that I can do some higlighting on some keywords through Notepad... (13 Replies)
Discussion started by: jitensetia
13 Replies
img-sun(n)																img-sun(n)

NAME
img-sun - Img, Sun Raster Format (sun) SYNOPSIS
package require Tk package require img::sun ?1.3? image create photo ?name? ?options? DESCRIPTION
The package img::sun is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its own, via package require img::sun. Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing raster images in the Sun Raster Format (sun). More specifically img::sun extends Tk's photo image type. The name of the new format handler is sun. This handler provides new additional configuration options. See section SUN OPTIONS for more detailed explanations. All of the above means that in a call like image create photo ?name? ?options? [1] Image data in sun format (options -data and -file) is detected automatically. [2] The format name sun is recognized by the option -format. In addition the value for the option is treated as list and may contain any of the special options listed in section SUN OPTIONS. SUPPORTED SUN TYPES
1-bit pixels: Black and White. 8-bit pixels: Grayscale or indexed. 24-bit pixels: True-color (RGB, each channel 8 bit). 32-bit pixels: True-color with alpha channel (RGBA, each channel 8 bit). List of currently supported features: Type | Read | Write | | -file | -data | -file | -data | ---------------------------------------- 1-bit | Yes | Yes | No | No | 8-bit | Yes | Yes | No | No | 24-bit | Yes | Yes | Yes | Yes | 32-bit | Yes | Yes | Yes | Yes | All images types may be either uncompressed or run-length encoded. SUN OPTIONS
The handler provides the following options: -verbose bool This option is supported for reading and writing. If set to true, additional information about the loaded/stored image is printed to stdout. Default is false. -compression type This option is supported for writing only. Set the compression mode to either none or rle. Default is rle. -matte bool This option is supported for reading and writing. If set to false, a matte (alpha) channel is ignored during reading or writing. Default is true. SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img- window, img-xbm, img-xpm KEYWORDS
image handling, sun, tk COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com> Img 1.3 img-sun(n)
All times are GMT -4. The time now is 11:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy