Hi all,
I want to sort a file based on the number in the 9th column
I've tried both of the following commands
sort -k 9,9n file_to_sort.dat
sort +8 -n file_to_sort.dat
both resulting in the same output which does sort col 9 nummerically
but it doesn't output the lines in the original... (2 Replies)
hi,
i want to rename all the file names in order so that they can be sorted later.
For example, my filenames are like path\1, path\2...path\10, path\11.
But when I sort them, it sorts by the first number, so path\1 gets sorted with path\10.
I'm guessing the best way to do this is to rename... (5 Replies)
I am converting mainframes JCL to be used in shell on a one to one basis... when i use the sort command unix does ascii sort as a result which numbers are first followed by charecters in the Ascending sort ... but themainframes uses the EBCDIC as result gives the charecters followed by numbers in... (5 Replies)
I need to sort the particular column only in reverse order how i can give it..
if i give the -r option the whole file is getting sorted in reverse order.
1st 2nd col 3rd
C col 4th col 5th col
-------------------------------------------
C... (7 Replies)
Hi,
I need to sort it by column or need it in a specific order...
input is
=====
uid=shashi country= india region =0 ph=0
uid= jon region= asia ph= 12345 country=0
uid = man country= india ph=2222 region=0
uid= neera region= asia ph= 125 country=0
output should be
uid=shashi ... (1 Reply)
Hi
I am using this
cat substitutionFeats.txt | gawk '{$0=gensub(/\t/,"blabla",1);print}' | gawk '{print length, $0}' | sort -n | sort -r
and the "sort -n" command doesn't work as expected: it leads to a wrong ordering:
64 Adjustable cuffs
64 Abrasion-
64 Abrasion pas
647 Sanitized 647... (4 Replies)
Hello all
I was wondering if someone has an idea how to sort by a specific order, let's say by a specific alphabet containing only 4 letters like (d,s,a,p) instead of (a,b,c....z) ??
Cheers! (6 Replies)
I am trying to sort a log file in chronological order to identify which ones did not process and still have an old (probably yesterday's) date. This is a sample of the file:flatf 010140 flatf Thu May 10 22:22:11 CST 2018 flats finished
flatf 010142 flatf Thu May 10 22:31:25 CST 2018 flats... (4 Replies)
Discussion started by: wbport
4 Replies
LEARN ABOUT SUSE
img-sun
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)