Huge improvement, thank you Chubler! The only issue's remaining are the alignment.
-The index heading is left aligned, but the index numbers are right aligned (I'd like to get both left aligned)
-The word heading and results are left aligned (need right aligned)
-The work count and results are left aligned (need right aligned).
Also, is there any way to do the sort using the asorti function? It was recommended I use that.
Again, thank you so much for your help!
---------- Post updated at 09:58 PM ---------- Previous update was at 02:43 PM ----------
I've completely redone the script because I wasn't using the actual index values (which this needs to be sorted by). I've come up with the following, which seems close to working, but isn't quite there. I've spent the past 4 hours on this, and am completely at my wits end. Any help would be appreciated. Thanks.
I am a newbie in UNIX shell script and seeking help on this UNIX function. Please give me a hand. Thanks.
I have a large file. Named as 'MyFile'. It was tab-delmited. I am told to write a shell function that counts the number of occurrences of the ord “mysring” in the file 'MyFile'. (1 Reply)
I have a text (text.txt) and I would like to replace only the first 2 occurrences of a word (but I might need to replace more):
For example, if text is this:
CAR sweet head
hat red yellow
CAR book brown
tiger CAR cow CAR
CAR milk
I would like to replace the word "CAR" with word... (12 Replies)
Assistance on work Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Files stored in ... (1 Reply)
Hello,
I have an output from GDB with many entries that looks like this
0x00007ffff7dece94 39 in dl-fini.c
0x00007ffff7dece97 39 in dl-fini.c
0x00007ffff7ab356c 50 in exit.c
0x00007ffff7aed9db in _IO_cleanup () at genops.c:1022
115 in dl-fini.c
0x00007ffff7decf7b in _dl_sort_fini (l=0x0,... (6 Replies)
I am trying to count the occurrences of ALL words in a file. However, I want to exclude certain words: short words (i.e. <3 chars), and words contained in an blacklist file. There is also a desire to count words that are capitalized (e.g. proper names). I am not 100% sure where the line on... (5 Replies)
Hi,
I have two text files (1.txt and 2.txt).
2.txt contains two columns which are extracted from 1.txt using a simple if(condition) print.
I want to:
- count how many times the values contained in 2.txt appear in 1.txt
-if they appear just one time, I have to delete the entire row in... (5 Replies)
Hi Gurus,
I'm scratching my head over and over and couldn't find the the right way to compose this AWK properly - PLEASE HELP :confused:
Input:
c,d,e,CLICK
a,b,c,CLICK
a,b,c,CONV
c,d,e,CLICK
a,b,c,CLICK
a,b,c,CLICK
a,b,c,CONV
b,c,d,CLICK
c,d,e,CLICK
c,d,e,CLICK
b,c,d,CONV... (6 Replies)
I was thinking something like this but it always gets rid of the file location.
grep -roh base. | wc -l
find . -type f -exec grep -o base {} \; | wc -l
Would this be a job for awk? Would I need to store the file locations in an array? (3 Replies)
Hi Friends ,
I am having one problem as stated file .
Having an input CSV file as shown in the code
U_TOP_LOGIC/U_HPB2/U_HBRIDGE2/i_core/i_paddr_reg_2_/Q,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,0... (4 Replies)
Discussion started by: kshitij
4 Replies
LEARN ABOUT DEBIAN
tray
Tray(3I) InterViews Reference Manual Tray(3I)NAME
Tray - compose interactors into arbitrary or constrained layouts
SYNOPSIS
#include <InterViews/tray.h>
DESCRIPTION
A tray is a scene of interactors that overlap, tile, or have other constraints on their alignment relative to each other. One of the
interactors in a tray can serve as a background for the other interactors.
Constraints on the layout of interactors are made by aligning interactors to each other. Two interactors are aligned by specifying which
edges coincide. For example, the lower left corner of one interactor may be aligned to the upper right of another. TGlue objects can be
used to introduce transparent space between aligned interactors. TGlue has a natural size, shrinkability, and stretchability (though TGlue
objects are not interactors). Trays stretch or shrink the TGlue along with the aligned interactors to satisfy the alignment constraints.
The tray adopts the shape of the background interactor if there is one; otherwise, the tray's shape depends on the shapes of its components
and potentially on their alignments. By default, a tray without a background takes on a width and height equal to the largest of the
widths and heights of its components. However, alignments involving the tray can in effect override this default.
For example, if the left and right sides of a particular component are aligned to the tray's left and right sides, respectively, then the
tray's sides are constrained to coincide with the component's sides. Thus the tray will adopt the width, horizontal shrinkability, and
horizontal stretchability of that component. Another example: To ensure that a tray circumscribes a collection of (mutually aligned) com-
ponents, align the outer edges of the components on the periphery of the collection to the outer edges of the tray, thereby constraining
the tray to assume the shape of the collection.
TGLUE PUBLIC OPERATIONS
TGlue(int w = 0, int h = 0, int hstretch = hfil, int vstretch = vfil);
Define TGlue of a minimum size. The TGlue can stretch from the given size but cannot shrink.
TGlue(int, int, int hshrink, int hstretch, int vshrink, int vstretch);
Define general TGlue with a given natural size (width and height), shrinkability, and stretchability.
TRAY PUBLIC OPERATIONS
Tray(Interactor* background = nil)
Create a new tray, optionally having an interactor as a background.
void Align(Alignment, Interactor*, TGlue* = nil)
void Align(Alignment, Interactor*, Alignment, Interactor*, TGlue* = nil)
Align an interactor to another interactor (the tray itself by default), optionally with TGlue between them. Align operations insert
interactors into the tray if they have not been inserted already.
void Align(Alignment, Interactor*, ..., Interactor* = nil)
Apply an alignment to a set of interactors. This operation is shorthand for aligning the interactors to each other explicitly. For
example, Align(Left, i1, i2, i3, i4) aligns the left sides of interactors i1 through i4. Two to seven interactors can be aligned at
once.
void HBox(Interactor*, ..., Interactor* = nil)
void VBox(Interactor*, ..., Interactor* = nil)
The HBox and VBox operations align the specified interactors such that they tile left-to-right and top-to-bottom, respectively.
These operations align in one dimension only. Two to seven interactors can be aligned at once. If the first (last) component is
the tray or the background interactor, then the leftmost (rightmost) component will be aligned with the left (right) side of the
tray.
void Insert(Interactor*)
Insert an interactor into the tray without an alignment. The interactor will appear in the lower left corner of the tray.
void Change(Interactor*)
Notify the tray that the given interactor's shape has changed. The tray will recompute the layout of its component interactors to
satisfy any alignments. If the tray does not contain a background, then a change in the shape of one of its components may in turn
change the tray's shape. If the tray has a background, then the tray's shape will change only if the shape of the background
changes.
void Remove(Interactor*)
Take an interactor out of a tray and eliminate any alignments that have been made to it.
SEE ALSO Interactor(3I), Scene(3I), Shape(3I)InterViews 8 September 1988 Tray(3I)