Hi,
In the following bash code rather than cutting at a predefined character I would like to cut at position i (i var from loop).
Is this possible? I have tried eval, but either it's not possible or my syntax is wrong.
thanks
Nick
for i in {1..9}
do
theChar=$(echo... (3 Replies)
I have a function "MyPrint" that runs great on a file (BaseData.txt) that has one line of data. If i add rows to the text file it's reading the tFile variable becomes a list of every field 2 in the file. To correct this, i tried to call the function from a loop where i read one line at a time and... (4 Replies)
The script is following :
for each_rec in <file_name>
do
count=`cut -c -2 ${each_rec} | grep "45"`
echo ${count}
if ] then
amount=`cut -c 24-35 ${each_rec}`
echo ${amount}
else
echo "failed"
fi
done
And the file looks like below :
... (4 Replies)
############## SOLVE #############
Hi
I would like to do something quite simple but i could not figure it out
Example file:
BAS,Fast ZeroSPEC,Fast ZeroSPEC,Fast Zero,CAD MASTER SWAP
BAS,Fast ZeroSPEC,Fast ZeroSPEC,Fast Zero,CHF SWAP GOTTEX
BAS,Fast ZeroSPEC,Fast ZeroSPEC,Fast... (10 Replies)
Hi
Can anyone what I am doing wrong while using cut command.
for f in *.log
do
logfilename=$f
Log "Log file Name: $logfilename"
logfile1=`basename $logfilename .log`
flength=${#logfile1}
Log "file length $flength"
from_length=$(($flength - 15))
Log "from... (2 Replies)
Guys,
I have a requirement as below.
consider,if i use df command, its getting the below output.
file system kbytes used avail %used Mounted on
/dev/sample/ 45765 40000 5765 50% /
/dev/filesys/ 30000 20000 1000 80% /u
....
....
Now i wanted to cut the /u... (11 Replies)
Hi,
i have a source file and have 3 columns and separated by "|" .i want to split this 3 columns in different variable.When i am executing this values indivisually giving correct result but when the same execute inside a for loop,it's giving issues.
Src file(jjj.txt)
-------... (8 Replies)
I am using : << cut / cut to comment out block of code.
Works fine on few lines of script, then it gives me this cryptic error when I try to comment out about 80 lines.
The "warning " is at last line of script.
done < results
169 echo "END read all positioning parameters"
170... (8 Replies)
Discussion started by: annacreek
8 Replies
LEARN ABOUT HPUX
xtungrabkeb
XtUngrabKeyboard() XtUngrabKeyboard()
Name
XtUngrabKeyboard - release an active keyboard grab.
Synopsis
void XtUngrabKeyboard(widget, time)
Widget widget;
Time time;
Inputs
widget Specifies the widget which has the active keyboard grab.
time Specifies the time when the grab should end. CurrentTime is acceptable.
Availability
Release 4 and later.
Description
XtUngrabKeyboard() releases an active keyboard grab by calling XUngrabKeyboard(), passing the display of widget and time.
The time argument may be a timestamp or the constant CurrentTime. If the specified time is earlier than the last-keyboard-grab time or
later than the current server time the keyboard will not be ungrabbed.
See XtGrabKeyboard() for more information about grabbing the keyboard.
Usage
Most applications will never need to issue a grab. XtAddGrab() (called by XtPopup()) can be used to implement modal popups inside an
application, and XtSetKeyboardFocus() can be used to redirect keyboard focus within an application. Neither function actually issues a
grab, and so does not interrupt event processing by other clients.
See AlsoXtAddGrab(1), XtGrabButton(1), XtGrabKey(1), XtGrabKeyboard(1), XtGrabPointer(1), XtSetKeyboardFocus(1), XtUngrabButton(1), XtUngrabKey(1),
XtUngrabPointer(1).
Xt - Keyboard Handling XtUngrabKeyboard()