Sponsored Content
Top Forums Shell Programming and Scripting Sorting on length with identification of number of characters Post 302758507 by gimley on Saturday 19th of January 2013 11:36:51 PM
Old 01-20-2013
Many thanks it worked. However since GAWK under windows does not allow pipes, I had to create 3 scripts
one for processing count, the other for sorting and the third for printing out the count.
Desperate situations call for desperate measures. Any way in which I can handle pipes under windows.
 

10 More Discussions You Might Find Interesting

1. AIX

Is the Length of User ID for AIX Limit to 8 Characters?

Hi, I'm using AIX version 5.3 currently. I'm trying to create a user id, e.g. andyleong, which the system prompted the length is too long. 1. I would like to know is that the length of user id is limited to maximum 8 characters for AIX. 2. Is it apply to all versions of AIX? If no... (2 Replies)
Discussion started by: meihua_t
2 Replies

2. UNIX for Dummies Questions & Answers

Conditional sorting on fixed length flat file

I have a fixed length file that need to be sorted according to the following rule IF B=1 ORDER by A,B Else ORDER by A,C Input file is ABC 131 112 122 231 212 222 Output needed ABC 112 131 122 212 231 222 (1 Reply)
Discussion started by: zsk_00
1 Replies

3. Shell Programming and Scripting

Sorting with non- and alphanumeric characters

Hi guys, I'm new to this forum and I'm not a UNIX expert. I can't figure out this certain problem i'm having: I need to sort some words, some of the words are annotations (enclosed within < and >). I need to have them sorted alphabetically with all non-alphanumeric characters up front. For... (2 Replies)
Discussion started by: fed.m.ang
2 Replies

4. Shell Programming and Scripting

Search and replace particular characters in fixed length-file

Masters, I have fixed length input file like FHEAD0000000001XXXX20090901 0000009000Y1000XXX2 THEAD000000000220090901 ITM0000109393813 430143504352N22SP 000000000000RN000000010000EA P0000000000000014390020090901 TTAIL0000000003000000 FTAIL00000000040000000002 Note... (4 Replies)
Discussion started by: bittoo
4 Replies

5. UNIX for Dummies Questions & Answers

Sorting words based on length

i need to write a bash script that recive a list of varuables kaka pele ronaldo beckham zidane messi rivaldo gerrard platini i need the program to print the longest word of the list. word in the output appears on a separate line and word order in the output is in the order Llachsicografi costs.... (1 Reply)
Discussion started by: yairpg
1 Replies

6. Shell Programming and Scripting

Remove characters from fixed length file

Hello I've question on the requirement I am working on. We are getting a fixed length file with "33" characters long. We are processing that file loading into DB. Now some times we are getting a file with "35" characters long. In this case I have to remove two characters (in 22,23... (14 Replies)
Discussion started by: manasvi24
14 Replies

7. Shell Programming and Scripting

Need to find lines where the length is less than 50 characters

Hi, I have a big file say abc.csv. And in that file, I need to find lines whose length is less than 50 characters. How can it be achieved? Thanks in advance. Thanks (4 Replies)
Discussion started by: Gangadhar Reddy
4 Replies

8. Shell Programming and Scripting

Sorting by length

Hello, I have a very large file: a dictionary of headwords of around 40000 and would like to have the dictionary sorted by its length i.e. the largest string first and the smallest at the end. I have hunted for a perl or awk script on the forum which can do the job but there is none available. I... (8 Replies)
Discussion started by: khoremand
8 Replies

9. Shell Programming and Scripting

Sorting a file with frequency on length

Hello, I have a file which has the following structure word space Frequency The file is around 30,000 headwords each along with its frequency. The words have different lengths. What I need is a PERL or AWK script which can sort the file on length of the headword and once the file is sorted on... (12 Replies)
Discussion started by: gimley
12 Replies

10. Shell Programming and Scripting

Checking the user input in perl for characters and length

My question is basically as the title says. How can I check a user inputted string is only certain characters long (for example, 3 characters long) and how do I check a user inputted string only contains certain characters (for example, it should only contain the characters 'u', 'a', 'g', and 'c')... (4 Replies)
Discussion started by: Eric1
4 Replies
XSetWMColormapWindows(3X11)					     MIT X11R4					       XSetWMColormapWindows(3X11)

Name
       XSetWMColormapWindows, XGetWMColormapWindows - set or read a window's WM_COLORMAP_WINDOWS property

Syntax
       Status XSetWMColormapWindows(display, w, colormap_windows, count)
	  Display *display;
	  Window w;
	  Window *colormap_windows;
	  int count;

       Status XGetWMColormapWindows(display, w, colormap_windows_return, count_return)
	  Display *display;
	  Window w;
	  Window **colormap_windows_return;
	  int *count_return;

Arguments
       display	 Specifies the connection to the X server.

       colormap_windows
		 Specifies the list of windows.

       colormap_windows_return
		 Returns the list of windows.

       count	 Specifies the number of windows in the list.

       count_return
		 Returns the number of windows in the list.

       w	 Specifies the window.

Description
       The function replaces the WM_COLORMAP_WINDOWS property on the specified window with the list of windows specified by the colormap_windows
       argument.  It the property does not already exist, sets the WM_COLORMAP_WINDOWS property on the specified window to the list of windows
       specified by the colormap_windows argument.  The property is stored with a type of WINDOW and a format of 32.  If it cannot intern the
       WM_COLORMAP_WINDOWS atom, returns a zero status.  Otherwise, it returns a non-zero status.

       can generate and errors.

       The function returns the list of window identifiers stored in the WM_COLORMAP_WINDOWS property on the specified window.	These identifiers
       indicate the colormaps that the window manager may need to install for this window.  If the property exists, is of type WINDOW, is of for-
       mat 32, and the atom WM_COLORMAP_WINDOWS can be interned, sets the windows_return argument to a list of window identifiers, sets the
       count_return argument to the number of elements in list, and returns a non-zero status.	Otherwise, it sets neither of the return arguments
       and returns a zero status.  To release the list of window identifiers, use

       can generate a error.

Properties
       WM_COLORMAP_WINDOWS
		 List of window IDs that may need a different colormap than that of their top-level window.

Diagnostics
       The server failed to allocate the requested resource or server memory.

       A value for a Window argument does not name a defined Window.

See Also
       XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocSizeHints(3X11), XAllocWMHints(3X11), XFree(3X11), XSetCommand(3X11), XSetTransient-
       ForHint(3X11), XSetTextProperty(3X11), XSetWMClientMachine(3X11), XSetWMIconName(3X11), XSetWMName(3X11), XSetWMProperties(3X11), XSetWM-
       Protocols(3X11), XStringListToTextProperty(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

														       XSetWMColormapWindows(3X11)
All times are GMT -4. The time now is 12:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy