Hi all.
I have 2 files like this:
f1
A 10
B 80
C 9
f2
A 11
B 700
C 10
What I want is the concatenation of the two files sorted by name (alphabetically) and size (numerically), so the result should be like this:
F3 (cat f1 f2 sorted)
A 10
A 11
B 80
B 700 (2 Replies)
I got a long list of file name.
My input:
data_1.txt
data_2.txt
data_3.txt
data_10.txt
data_21.txt
data_12.txt
data_4.txt
My desired output:
data_1.txt
data_2.txt
data_3.txt
data_4.txt
data_10.txt
data_12.txt
data_21.txt
Does anybody got idea how to archive it? (11 Replies)
Hi,
A basic query. In the example file below, I want to sort by column 1 and then by column 2 numerically. I have tried sort -k2n,1 file1 but while this sorts the columns in the correct order, it does not sort column 2 numerically. Any help would be much appreciated. Also, if you have time to... (3 Replies)
Greetings - I'm not necessarily new to bash scripting - I'm probably between beginner and intermediate, but I have something that I just cannot figure out after many attempts to find it. I have a file that is merely a list of many files, with their respective paths, and a branch path (ClearCase)... (5 Replies)
hello people...i have beeen given this projectile problem to be solved numerically in FORTRAN..i have coded it using runge0kutta 4th order ......now the thing is that i have not been given the end points of time,,;ie. the range.. and i am asked to
a)the maximum height attained by the... (2 Replies)
Hi ,
My requirement is to scan a directory for file names with LTR.PDF*
and send those files via ftp to another server one by one.
Now the the problem is file names are like LTR.PDF ,LTR.PDF1 ,LTR.PDF2.....LTR.PDF10..upto 99
and these needs to be sent in sorted order.
is there a way to get... (10 Replies)
Hello,
I am running ubuntu 16.04 and trying to list all files inside a directory, I need to sort them in ascending order. While surfing on the site, I found an old thread but somehow it did not work.
Link
Ascending order with sort -nk2 myfile.txt command gives below output:
file... (5 Replies)
Trying to sort a bunch of files numerically but can't seem to get the command just right. This is in a IBM AIX machine.
I have a directory that has...
backup.bk1
backup.bk100
backup.bk2
backup.bk200
backup.bk3
backup.bk300
There are a lot more files but this is shortened for the... (5 Replies)
Discussion started by: c3rb3rus
5 Replies
LEARN ABOUT ULTRIX
dwtscrollwindowsetareas
DwtScrollWindowSetAreas(3Dwt)DwtScrollWindowSetAreas(3Dwt)Name
DwtScrollWindowSetAreas - Sets up or adds the window region, and the horizontal or vertical scroll bar widgets to the scroll window widget.
Syntax
void DwtScrollWindowSetAreas(widget, horizontal_scroll_bar, vertical_scroll_bar, work_region)
Widget widget;
Widget horizontal_scroll_bar;
Widget vertical_scroll_bar;
Widget work_region;
Arguments
widget Specifies the scroll window widget ID.
horizontal_scroll_bar
Specifies the scroll bar widget ID for the horizontal scroll bar to be associated with the scroll window widget. You can set or
specify this ID only after creating an instance of the main window widget. The attribute name associated with this argument is
DwtNhorizontalScrollBar.
vertical_scroll_bar
Specifies the scroll bar widget ID for the vertical scroll bar to be associated with the scroll window widget. You can set or
specify this ID only after creating an instance of the main window widget. The attribute name associated with this argument is
DwtNverticalScrollBar.
work_region
Specifies the widget ID for the window to be associated with the scroll window work area. You can set or specify this ID only
after you create an instance of the main window widget.
Description
The DwtScrollWindowSetAreas function adds or changes a window work region and a horizontal or vertical scroll bar widget to the scroll win-
dow widget for the application. You must call this function before the scroll window widget is realized, that is, before calling the X
intrinsics function XtRealizeWidget. Each widget is optional and may be passed as NULL.
See AlsoDwtScrollWindow(3Dwt), DwtWindow(3Dwt),
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtScrollWindowSetAreas(3Dwt)