08-07-2009
:a is just a label. ta says that as long as the expression is true go back to the label a and do it again.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Trying to install something. Can someone explain what this means?
chmod -R a+r .
chmod -R a+w logo.gif tempdir/ templates_c/
I recognize that file permissions are being changed (chmod), but beyond that, it's Greek to me. (6 Replies)
Discussion started by: chris86
6 Replies
2. Shell Programming and Scripting
Hi all,
i needed some help in understanding a few procedures and how exactly is the sequence?
FINISHED="Done"
COLUMNS=$( stty -a | head -n 2 | cut -d " " -f2 |cut -d " " -f4 )
COLS=$((${COLUMNS} -${#FINISHED} - 5))
RET_ARR="\010"
KILLLINE=${RET_ARR}${RET_ARR}
for i in $(seq 1... (0 Replies)
Discussion started by: wrapster
0 Replies
3. UNIX for Dummies Questions & Answers
We use a UNIX-based system (Lawson) at work and I was given this command to request a data extract from the db admin. The only thing I really understand is the last line as it appears to be joining the files created from the first three lines into one. Is there anyone who can help me breakdown the... (4 Replies)
Discussion started by: KGee
4 Replies
4. Shell Programming and Scripting
Guys,
I am trying to understand the sed command here.
adx001 $ a=/clocal/dctrdata/user/dctrdat1/trdroot/recouncil
adx001 $ b=`echo $a | sed 's/\//\\\\\//g'`
adx001 $ echo $b
\/clocal\/dctrdata\/user\/dctrdat1\/trdroot\/recouncil
The sed command i took it from the script.
Please... (3 Replies)
Discussion started by: mac4rfree
3 Replies
5. Shell Programming and Scripting
Hi Guys,
I like to know if i have a process which triggers 10 different child processes.
How to identify out of the 11 processes running which is the parent process and what are the child process?
And if i kill the parent process will the child process be killed.. if not is there a way to... (2 Replies)
Discussion started by: mac4rfree
2 Replies
6. Shell Programming and Scripting
hi
i was moving a file from one directory to another with the following cmmand
mv /home/hsghh/dfd/parent/file.txt .
while doing so i i accidently
mv /home/hsghh/dfd/dfd .
although i gave ctrl c and terminate the move command some of the file are missing in the parent directory and... (1 Reply)
Discussion started by: saravanan71184
1 Replies
7. Shell Programming and Scripting
There is a function called start:
start()
{
echo -n $"Sending Startup Email: "
echo "${RESTARTBODY}" | mutt -s "${RESTARTSUBJECT}" ${EMAIL}
RETVAL=$?
if ; then
touch ${LOCKFILE}
success
else
failure
fi
echo
return ${RETVAL}
}
Can anyone explain what the bold part of the... (3 Replies)
Discussion started by: proactiveaditya
3 Replies
8. Solaris
Hi
I have a questions related 2 commands : 'du' and 'ls'.
Why is the difference between output of 'du' and 'ls' cmd's ?
Command 'du' :
------------------
jakubn@server1 /home/jakubn $ du -s *
4 engine.ksh
1331 scripts
'du -s *' ---> shows block count size on disk (512 Bytes... (5 Replies)
Discussion started by: presul
5 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends,
I need a small help in understanding the below sed command.
$ cat t4.txt
1 root 1 58 0 888K 368K sleep 4:06 0.00% init
1 root 1 58 0 888K 368K sleep 4:06 0.00% init last
$ sed 's/*$//' t4.txt
1 root 1 58 0 888K ... (3 Replies)
Discussion started by: forroughuse
3 Replies
10. Shell Programming and Scripting
Hello
I am working on a Change request and Stuck at a point. The below awk command is used in the function.
float_test ( ) {
echo | awk 'END { exit ( !( '"$1"')); }'
}
I understand that awk 'END' is used to add one line at the end and exit is used to end the script with an error... (4 Replies)
Discussion started by: rahul2662
4 Replies
LEARN ABOUT ULTRIX
dwtmainsetareas
DwtMainSetAreas(3Dwt) DwtMainSetAreas(3Dwt)
Name
DwtMainSetAreas - Sets up or adds the menu bar, command window, work window, and scroll bar widgets to the main window widget of the appli-
cation.
Syntax
void DwtMainSetAreas(widget, menu_bar, work_window,
command_window, horizontal_scroll_bar,
vertical_scroll_bar)
Widget widget;
Widget menu_bar;
Widget work_window, command_window;
Widget horizontal_scroll_bar, vertical_scroll_bar;
Arguments
widget Specifies the main window widget ID.
menu_bar Specifies the widget ID for the menu bar to be associated with the main window widget. You can set this ID only after creating
an instance of the main window widget. The attribute name associated with this argument is DwtNmenuBar.
work_window
Specifies the widget ID for the work window to be associated with the main window widget. You can set this ID only after creat-
ing an instance of the main window widget. The attribute name associated with this argument is DwtNworkWindow.
command_window
Specifies the widget ID for the command window to be associated with the main window widget. You can set this ID only after cre-
ating an instance of the main window widget. The attribute name associated with this argument is DwtNcommandWindow.
horizontal_scroll_bar
Specifies the scroll bar widget ID for the horizontal scroll bar to be associated with the main window widget. You can set this
ID only after creating an instance of the main window widget. The attribute name associated with this argument is DwtNhorizon-
talScrollBar.
vertical_scroll_bar
Specifies the scroll bar widget ID for the vertical scroll bar to be associated with the main window widget. You can set this ID
only after creating an instance of the main window widget. The attribute name associated with this argument is DwtNverti-
calScrollBar.
Description
The DwtMainSetAreas function sets up or adds the menu bar, work window, command window, and scroll bar widgets to the application's main
window widget. You must set these areas up before the main window widget is realized, that is, before calling the X intrinsics function
XtRealizeWidget.
Each area is optional; therefore, you can pass NULL to one or more of these arguments. The title bar is provided by the window manager.
See Also
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtMainSetAreas(3Dwt)