Find and increment at each occurence of string (loop)
I created script (sh shell) to generate vlc playlist based on some data files. All works fine so far except one string I do not know how to handle with.
Output file contains several occurences of this:
I need to create loop to increment each occurrence of '0' +1 in string '<vlc:id>0</vlc:id>' but the first occurrence has to stay '0'.
Depending upon the occurence of string 'xyz', I want to remove -t from the input file.
There is not a fixed length input file.
Any suggestions
Input file:
this is xyz line -t of the data
this is line 2 of -t of the data
xyz this is line 3 of -t the file
this is line xyz of the -t file... (1 Reply)
Hi All,
I want to search the string for vowel's occurence and find the no of occurence of each vowels, Could anyone help me out? This is urgent to me...I m new to Shell programming..
Thanks and Regards,
Nids:b: (4 Replies)
Hi Guys,
My first post..:)
Right...I want to move existing files (with some date in their name) currently in $mainftp, to $mainfolder/$foldate/system1.
I'd like to be able to increment date in the for loop? Is this possible or should I use a different technique.
The script return the... (4 Replies)
I need to find the index of last '|' (highlighted in bold) in awk :
|ifOraDatabase.Lastservererr<>0then|iferr_flag<>0then|end if
Please suggest a way... Thanks (5 Replies)
Hi,
Can anyone help with the problem below? I need to read all text files (file1, file2, file3) in a loop and find
file1.txt:
file2.txt:
File3.txt: (7 Replies)
this is my assignment question. i'm supposed to submit it tommorow. can somebody please help me with it?
Do not post homework questions in the main forums. Please post in the homework forum using the correct template. (0 Replies)
Hi guys,
I like to find the Line number of Nth Occurence of a Search string in a file.
If possible, if it will land the cursor to that particualar line will be great.
Cheers!! (3 Replies)
Hello men.
How can i build a simple increment for $a by Xquery such as ?
let $a := 0
for $i in (1 to 10)
let $a := $a + 1
return $a
why a in this loop always is '1'
Thank you for reading, its will really helpful for my job if i can solve this problem :D:D (3 Replies)
I have a log file which looks like this:
<845185415165:STATUS:5/0:0:0:0:0|ghy59DI5zasldf87asdfamas8df9asd903tGUVSQx4GJVSQ==>
I have to extract DATE and number of times the keyword STATUS is shown on each date.
Input is : <1354625655744:STATUS:5/0:0:0:0:0|ghy59DI5ztGUVSQx4GJVSQ==>... (8 Replies)
I have a long string of hex (from ASN.1 data) where I need to find and change a particular hex value only and increment it. The hex pairs either side (84 and a7) of the value to increment will remain constant.
i.e. "84 <length> <value_to_increment> a7" starting with 00.
So end result:
... (11 Replies)
Discussion started by: securegooner
11 Replies
LEARN ABOUT OSF1
xmscrollbarsetvalues
XmScrollBarSetValues(3X)XmScrollBarSetValues(3X)NAME
XmScrollBarSetValues - A ScrollBar function that changes ScrollBar's increment values and the slider's size and position
SYNOPSIS
#include <Xm/ScrollBar.h>
void XmScrollBarSetValues (widget, value, slider_size, increment, page_increment, notify)
Widget widget;
int value;
int slider_size;
int increment;
int page_increment;
Boolean notify;
DESCRIPTION
XmSetScrollBarValues changes the ScrollBar's increment values and the slider's size and position. The scroll region is overlaid with a
slider bar that is adjusted in size and position using the main ScrollBar or set slider function attributes. Specifies the ScrollBar wid-
get ID. Specifies the ScrollBar's slider position between XmNminimum and XmNmaximum. The resource name associated with this argument is
XmNvalue. Specifies the size of the slider as a value between zero and the absolute value of XmNmaximum minus XmNminimum. The size of the
slider varies, depending on how much of the slider scroll area it represents. This sets the XmNsliderSize resource associated with Scroll-
Bar. Specifies the amount of button increment and decrement. If this argument is not zero, the ScrollBar widget automatically adjusts the
slider when an increment or decrement action occurs. This sets the XmNincrement resource associated with ScrollBar. Specifies the amount
of page increment and decrement. If this argument is not zero, the ScrollBar widget automatically adjusts the slider when an increment or
decrement action occurs. This sets the XmNpageIncrement resource associated with ScrollBar. Specifies a Boolean value that when True,
indicates a change in the ScrollBar value and also specifies that the ScrollBar widget automatically activates the XmNvalueChangedCallback
with the recent change. If False, specifies any change that has occurred in the ScrollBar's value, but XmNvalueChangedCallback is not
activated.
For a complete definition of ScrollBar and its associated resources, see XmScrollBar(3X).
SEE ALSO XmScrollBar(3X)XmScrollBarSetValues(3X)