08-13-2010
Exactly the same i provided u ...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
dear
i have one file regarding
>abshabja>sdksjbs>sknakna>snajxcls
so i want to be output like
>abshabja
>sjkabjb
>sknakna
>snajxcls
Any using awk or sed will help
thanks (2 Replies)
Discussion started by: cdfd123
2 Replies
2. Shell Programming and Scripting
suppose if u have a file like that
Hen ABCCSGSGSGJJJJK 15
Cock ABCCSGGGSGIJJJL 15
* * * * * * : * * * . * * * :
Hen CFCDFCSDFCDERTF 30
Cock CHCDFCSDHCDEGFI 30
* . * * * * * * * : * * :* : : .
The output shud be
where there is : and .
It shud... (4 Replies)
Discussion started by: cdfd123
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am trying to debug an old script and have found the problem lies within this function:
isIdoc() { # validate the file type
fileType=`file $1 | awk '{print $NF}'`
&& echo 0 || echo 1
}
My question is, how can I determine what is in the variable $fileType ? The program is... (1 Reply)
Discussion started by: vervette
1 Replies
4. Shell Programming and Scripting
Hello,
I am strugling from quite a some time to compare flat files with over 1 million records could anyone please help me.
I want to compare two pipe delimited flat files, file1 with file2 and output the unmatched rows from file2 in file3
Sample File1:
... (9 Replies)
Discussion started by: suhaeb
9 Replies
5. Shell Programming and Scripting
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Discussion started by: adept
4 Replies
6. UNIX for Dummies Questions & Answers
cat doc | nawk -v da="${date}" '$23>199 {print $0 > "doc"+da+".txt"}'
Every time(need to run every day) i run this, i want to a create a new file "doc_01 Aug.txt".
Basically, i want to create a new file with date appended in it.
The above command is creating a file with name "0".... (4 Replies)
Discussion started by: vagar11
4 Replies
7. Shell Programming and Scripting
Hi I have a file that contains lines starting with a particular string plus a Colon: I need to output all these lines but only what comes after the colon
Can you pelase assist?
Example of lines in the file:
com.ubs.f35.cashequities/cashequities: 1 2
... (5 Replies)
Discussion started by: mnassiri
5 Replies
8. Shell Programming and Scripting
hi,
i have a fixed width file with multiple columns and need to print data using awk command.
i use: awk -F "|" '($5 == BH) {print $1,$2,$3}' <non_AIM target>.txt for a delimiter file.
but now i have a fixed width file like below:
7518 8269511BH 20141224951050N8262
11148 8269511BH... (5 Replies)
Discussion started by: kcdg859
5 Replies
9. Shell Programming and Scripting
The below awk uses $3 and $4 in search as the min and max, then takes each $2 value in lookup and compares it. If the value in lookupfalls within the range in searchthen it prints the entire line in lookup/ICODE]. What I can't seem to figure out is how to print the matching $5 from search on that... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT CENTOS
xmconvertunits
XmConvertUnits(library call) XmConvertUnits(library call)
NAME
XmConvertUnits -- A function that converts a value in one unit type to another unit type
SYNOPSIS
#include <Xm/Xm.h>
int XmConvertUnits(
Widget widget,
int orientation,
int from_unit_type,
int from_value,
int to_unit_type);
DESCRIPTION
XmConvertUnits converts the value and returns it as the return value from the function. For resources of type, dimension, or position, you
can specify units using the syntax described in the XmNunitType resource of the XmPrimitive reference page.
widget Specifies the widget for which the data is to be converted.
orientation
Specifies whether the converter uses the horizontal or vertical screen resolution when performing the conversions. The orienta-
tion parameter can have values of XmHORIZONTAL or XmVERTICAL.
from_unit_type
Specifies the current unit type of the supplied value
from_value
Specifies the value to be converted
to_unit_type
Converts the value to the unit type specified
The parameters from_unit_type and to_unit_type can have the following values:
XmPIXELS All values provided to the widget are treated as pixel values. This is the default for the resource.
XmMILLIMETERS
All values provided to the widget are treated as millimeter values.
Xm100TH_MILLIMETERS
All values provided to the widget are treated as 1/100 of a millimeter.
XmCENTIMETERS
All values provided to the widget are treated as centimeter values.
XmINCHES All values provided to the widget are treated as inch values.
Xm1000TH_INCHES
All values provided to the widget are treated as 1/1000 of an inch.
XmPOINTS All values provided to the widget are treated as point values. A point is a unit used in text processing applications and is
defined as 1/72 of an inch.
Xm100TH_POINTS
All values provided to the widget are treated as 1/100 of a point. A point is a unit typically used in text processing applica-
tions and is defined as 1/72 of an inch.
XmFONT_UNITS
All values provided to the widget are treated as normal font units. A font unit has horizontal and vertical components. These
are the values of the XmScreen resources XmNhorizontalFontUnit and XmNverticalFontUnit.
Xm100TH_FONT_UNITS
All values provided to the widget are treated as 1/100 of a font unit. A font unit has horizontal and vertical components.
These are the values of the XmScreen resources XmNhorizontalFontUnit and XmNverticalFontUnit.
RETURN
Returns the converted value. If a NULL widget, incorrect orientation, or incorrect unit_type is supplied as parameter data, 0 (zero) is
returned.
RELATED
XmPrimitive, XmSetFontUnits(3), and XmScreen(3).
XmConvertUnits(library call)