how do you print the lines that contain integers only, using grep or awk?
thanks ,
apalex
------------------
this file below:
qwerty
01234
asdfgh
01234
qwer12
asdf05
will be:
01234
01234
qwer12
asdf05 (5 Replies)
Hi,
I am trying to write a script to extract multiple sets of data from a chemistry output file. The problem section is in the following format...
Geometry "geometry" -> "geometry"
1 Pd 46.0000 -0.19290971 0.00535260 0.02297606
2 P ... (7 Replies)
Srr for being pain her
let say i have a data in a file like this
1@1000
2@2000
4@4000
5@7770
6@8998
7@80008
i am a newbie in Unix
i need to add a comma to integer using AWK function. for example, 1,000 or 80,008
how can i do that
ps. i'm using bash shell (1 Reply)
I need to extract a value from a text file into a ksh script, and change the last two letters to "00". awk gets the right value (2500 in this example), but the variable has no value.
I use the following command:
StartTime=expr nawk 'NR==20 {print $11;exit}' $New_FILE
echo 1 $StartTime... (4 Replies)
Hi guys, I asked for help on programming forums and no one didn't helped me so I ask for help here. I am playing with some tasks from my book and I can't figure where did I get wrong.
From the first program I get a blank screen, program won't generate 10*10 matrix.
And second problem is I... (6 Replies)
I would like to extract a number from $0 and calculate if it can be devided by 25. Though the number can also be less then 25 or bigger than 100. How do i extract the number and how can the integer be calculated?
String:
"all_results">39</span>I am looking for the number between "all_results"> ... (5 Replies)
HI Folks,
I'm looking for a solution for this issue.
I want to find the Pattern 0/ and replace it with /. I'm just removing the leading zero. I can find the Pattern but it always puts literal value as a replacement.
What am I missing??
sed -e s/0\//\//g File1 > File2
edit by... (3 Replies)
In the tab-delimited input below I am trying to use awk to -10 from $2 and +10 to $3. Something like
awk -F'\t' -v OFS='\t' -v s=10 '{split($4,a,":"); print $1,$2-s,$3+s,a,$5,$6} | awk {split(a,b,"-"); print $1,$2-s,$3+s,b-s,b+s,$5,$6}' input
should do that. I also need to -10 from $4... (2 Replies)
Hi,
0.23 2.94% 0.00 0.00% 17.8G 55.7% 19.6G 40.9% 630 0.00%
0.06 0.77% - - 7524M 22.9% 15.6G 32.6% - -
From the above sample output. I need to compare whether the 6th field is more than 10G..if so print the entire line. Here the 6th field is memory
TIA (5 Replies)
Hi Folks -
Linux Version = Linux 2.6.39-400.128.17.el5uek x86_64
I have a process that determines the start and end load periods for an Oracle data load process.
The variables used are as follows follows:
They are populated like such:
However, the load requires the month to be the... (11 Replies)
Discussion started by: SIMMS7400
11 Replies
LEARN ABOUT XFREE86
tek4957
TEK4957(4) Kernel Interfaces Manual TEK4957(4)NAME
tek4957 - Tektronix 4957 input driver
SYNOPSIS
Section "InputDevice"
Identifier "idevname"
Driver "tek4957"
Option "Device" "devpath"
...
EndSection
DESCRIPTION
tek4957 is an XFree86 input driver for the Tektronix 4957 tablet.
The tek4957 driver functions as a pointer input device, and may be used as the X server's core pointer.
CONFIGURATION DETAILS
Please refer to XF86Config(5) for general configuration details and for options that can be used with all input drivers. This section only
covers configuration details specific to this driver.
Option "Device" "devpath"
sets the path to the special file which represents serial line where the tablet is plugged, for example /dev/ttyS0. This
option is mandatory.
Option "DeviceName" "name"
sets the name of the X device.
Option "Speed" "number"
sets the sampling rate, from 1 to 6. Default is 6, maximum speed.
Option "Resolution" "number"
sets the resolution.
0 : 2340 dots : 1/200 inch
1 : 2972 dots : 1/10 mm
2 : 11700 dots : 1/1000 inch
3 : 11887 dots : 1/40 mm
4 : 5850 dots : 1/500 inch
5 : 5944 dots : 1/20 mm : default
6 : 4680 dots : 1/400 inch
7 : 1170 dots : 1/100 inch
8 : 12 dots : 1 inch
9 : 24 dots : 1/2 inch
Option "TopX" "number"
X coordinate of the top corner of the active zone. ( Default = 0 )
Option "TopY" "number"
Y coordinate of the top corner of the active zone. ( Default = 0 )
Option "BottomX" "Inumber"
X coordinate of the bottom corner of the active zone. ( Default = full scale )
Option "BottomY" "number"
Y coordinate of the bottom corner of the active zone. ( Default = full scale )
BUGS / LIMITATIONS
Currently, only "Absolute" mode is supported ( Sorry )
SEE ALSO XFree86(1), XF86Config(5), xf86config(1), Xserver(1), X(7).
AUTHORS
Olivier DANET <odanet@caramail.com>
XFree86 Version 4.7.0 TEK4957(4)