12-06-2011
@ryan: Thank you very much! This works perfectly! It's exactly what I'm looking for. Your post is very helpful. I do appreciate you went into details and gave me an explaination for it. Thanks once again.
@Corona688: Sorry, I didn't mean to repost. I originally asked how to work with the bat file but I figured that out so I thought I need to focus on what the actual problem is and just ask for the code part.
Thank you both for all your help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all , i have a requirement like this..
this just a sample script...
$ cat test.sh
#!/bin/bash
perl -e '
open(IN,"addrss");
open(out,">>addrss");
@newval;
while (<IN>)
{
@col_val=split(/:/);
if ($.==1)
{
for($i=0;$i<=$#col_val;$i++)
{
... (2 Replies)
Discussion started by: tprayush
2 Replies
2. Shell Programming and Scripting
Hi,
Please suggest me to write unix command, HEADER20110101 string append to first line of a file..
Regards
Akshu (3 Replies)
Discussion started by: akshu.agni
3 Replies
3. Shell Programming and Scripting
Hello Everyone,
I just started scripting this week. I have no background in programming or scripting.
I'm working on a script to grep for a variable in a log file
Heres what the log file looks like. The x's are all random clutter
xxxxxxxxxxxxxxxxxxxxx START: xxxxxxxxxxxx... (7 Replies)
Discussion started by: rxc23816
7 Replies
4. Shell Programming and Scripting
Hi,
I have two variables x and y.
i need to find a particular string in a file, a workflow name and then insert the values of x and y into the next lines of the workflow name.
basically it is like as below
wf_xxxxxx
$$a=
$$b=
$$c= figo
$$d=bentley
i need to grep the 'wf_xxxx' and then... (6 Replies)
Discussion started by: angel12345
6 Replies
5. Shell Programming and Scripting
Hi,
I need help for below scenario.I have a flat file which is having records seperated by delimiters which will represent each record for oracle table.My Control file will consider each line as one record for that table. Some of the lines are aligned in two/three lines so that records are... (4 Replies)
Discussion started by: kannansr621
4 Replies
6. Shell Programming and Scripting
HI,
Can anyone help me with a script.
i/p
calc 1 2 3 4 5 6 7 8
calc 4 5 6 calc 7 8 9
o/p
calc 1 2 3 4 5 6 7 8
calc 4 5 6
i.e remove anything after where two times the string calc is found.
thanks (3 Replies)
Discussion started by: Indra2011
3 Replies
7. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
8. Shell Programming and Scripting
Hello all,
after spending hours of searching the web I decided to create an account here. This is my first post and I hope one of the experts can help.
I need to resolve a grep / sed / xargs / awk problem.
My input file is just like this:
----------------------------------... (6 Replies)
Discussion started by: bash4ever
6 Replies
9. Shell Programming and Scripting
Platform: Solaris 10
I have a file like below
$ cat languages.txt
Spanish
Norwegian
English
Persian
German
Portugese
Chinese
Korean
Hindi
Malayalam
Bengali
Italian
Greek
Arabic
I want to append the string " is a great language" at end of each line in this file. (3 Replies)
Discussion started by: omega3
3 Replies
10. Shell Programming and Scripting
hi,
i have /etc/inittab, I want to add another line after that when i find a pattern "l6:6:wait:/etc/rc.d/rc 6".
original
l6:6:wait:/etc/rc.d/rc 6
after-change
l6:6:wait:/etc/rc.d/rc 6
/sbin/if-pp-to-cng (3 Replies)
Discussion started by: learnbash
3 Replies
LEARN ABOUT CENTOS
xmistraversable
XmIsTraversable(library call) XmIsTraversable(library call)
NAME
XmIsTraversable -- A function that identifies whether a widget can be traversed
SYNOPSIS
#include <Xm/Xm.h>
Boolean XmIsTraversable(
Widget widget);
DESCRIPTION
XmIsTraversable determines whether the specified widget is eligible to receive focus through keyboard traversal. In general, a widget is
eligible to receive focus when all of the following conditions are true:
o The widget and its ancestors are not being destroyed, are sensitive, and have a value of True for XmNtraversalOn.
o The widget and its ancestors are realized, managed, and (except for gadgets) mapped. If an application unmaps a widget that has its
XmNmappedWhenManaged resource set to True, the return value is undefined.
o Some part of the widget's rectangular area is unobscured by the widget's ancestors, or some part of the widget's rectangular area is
inside the work window (but possibly outside the clip window) of a ScrolledWindow whose XmNscrollingPolicy is XmAUTOMATIC and whose
XmNtraverseObscuredCallback is not NULL.
Some widgets may not be eligible to receive focus even if they meet all these conditions. For example, most managers cannot receive focus
through keyboard traversal. Some widgets may be eligible to receive focus under particular conditions. For example, a DrawingArea is eli-
gible to receive focus if it meets the conditions above and has no child whose XmNtraversalOn resource is True.
Note that when all widgets in a shell hierarchy have been made untraversable, they are considered to have lost focus. When a widget in this
hierarchy is made traversable again, it regains focus.
XmIsTraversable may return unexpected results when widget or its ancestors are overlapped by their siblings.
widget Specifies the ID of the widget
RETURN
Returns True if the widget is eligible to receive focus through keyboard traversal; otherwise, returns False.
RELATED
XmGetVisibility(3) and XmProcessTraversal(3).
XmIsTraversable(library call)