Hi,
I want to write a perl script, which will increment number stored in file. I want to do this without any file handles. I think we have to use some UNIX commands. I am not sure how to do this with file handles.
Thanks, (1 Reply)
Hi All,
I have a variable n that stores a number.
Eg. echo $n comes out to be 120.
I need to print 121 using echo command on n.
Please advice.
Thanks in advance !! (4 Replies)
Hi,
I have a perl script which prints epoch value of date in milliseconds as the output.
My reuirement is that once the output is printed,the day variable shld increment by 1 and when i execute the script for the second time the output shld be for the new day value.
My script looks as... (11 Replies)
Hello There,
I have been trying to increment the value of variable to 1, 2, 3 etc. but, it displays
1
1+1
1+1+1
.....
:wall:
Could anyone help out with this?
for i in *.*
do
s=`expr $s+1`
echo $s
j=$i$j
mv $i $j
done
Any help is appreciated? (24 Replies)
i have a variable that has more than one value. i am declaring another variable, which will have the old variable data one by one. i want to use the second variable to hold the track of all the variable it has parsed from the first one. can somebody help me how do i declare and use the second... (7 Replies)
Hi there everyone!
This is my first post so be gentle.
I have a small bash script that is extracting 3 line every 3 lines. I got the AWK part but i cant do the loop part.
#!/bin/bash
export line=`awk 'END { print NR }' btnew`
echo $line
for i in {1..$line..3} #increment
do
echo... (2 Replies)
Hi All,
I am new to this forum and a novice at shell script. I am trying to write a script to determine each of the NIC configured on a linux system and its speed and Duplex. I came up with the following piece of code:
echo `ifconfig -a | grep eth > /home/a/nic.txt`
i=`awk -F, '{print... (4 Replies)
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
hey guys,
I need to incerement the date variable for instance
echo `date '+%F %H:%M:00'`
this produces
2014-08-02 20:05:00
-I will grant this to : $Datehour and need to assign 1 hr from now to $Datelasthour
-the script time will be used to talk to DB system information.
however... (4 Replies)
Discussion started by: mo_VERTICASQL
4 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)