I've refined the filesystem size using awk and directed to a file name.
eg, here's the content in a file called "numbers"
$cat numbers
345
543
23423456
44435
546
.
.
how do you write a script to all these numbers to get the total?
thanks a lot. (9 Replies)
Hi
I need to get a user to enter a number (an exchange rate) into a script. I have the following:
#!/bin/ksh
echo "Enter exchange rate:"
read EX_RATE
if \"`" ]
then
echo "Well done - only numeric here"
else
echo "Not so well done - there is NON numeric stuff here!"
fi
This works... (3 Replies)
Hey, dunno if the title really explains this well; basically my problem is (and this is on a router which is why the flash issue)...
I have some data I want to store (it's really irelevant, i'm just counting the lines per file, basically a simple counter).
I could store this data in flash but... (0 Replies)
Hello everybody,
I am having problem in converting byte array variables to Hexa String variables for Linux. I have done, converting byte array variables to Hexa String variables for Windows but same function doesn't work for linux. Is there any difference in OS ? The code for Windows is given... (2 Replies)
Can someone tell me how to change the first column in a very large 17k line file from a random 10 digit numeric value to a non numeric value. The format of lines in the file is:
1702938475,SNU022,201004
the first 10 numbers always begin with 170 (6 Replies)
Please, i have a question about rsync command:
Here is the command that i have used in my script:
rsync -ratlz --rsh="/usr/bin/sshpass ssh -o StrictHostKeyChecking=no" -aAXHltzh --progress --numeric-ids --devices --rsync-path="rsync" $1 $hostname:$1
using this command, i can... (0 Replies)
Example
I have following requirements where i need to search for particular string from the log files.Files will be archived with number attached end to it and creates a new log file.
First Day i will ran at 8:00 AM
Filename:a.log1
Wed Aug 24 04:46:34... (1 Reply)
Discussion started by: nareshnani211
1 Replies
LEARN ABOUT HPUX
xmclipboardendretrieve
XmClipboardEndRetrieve(library call) XmClipboardEndRetrieve(library call)
NAME
XmClipboardEndRetrieve -- A clipboard function that completes retrieval of data from the clipboard
SYNOPSIS
#include <Xm/CutPaste.h>
int XmClipboardEndRetrieve (display, window)
Display * display;
Window window;
(void)
DESCRIPTION
XmClipboardEndRetrieve suspends copying data incrementally from the clipboard. It tells the clipboard routines that the application is
through copying an item from the clipboard. Until this function is called, data items can be retrieved incrementally from the clipboard
with XmClipboardRetrieve. The act of copying data is started with the XmClipboardStartRetrieve function.
display Specifies a pointer to the Display structure that was returned in a previous call to XOpenDisplay or XtDisplay.
window Specifies the window ID of a widget that relates the application window to the clipboard. The widget's window ID can be obtained
with XtWindow. The same application instance should pass the same window ID to each of the clipboard functions that it calls.
RETURN
XmClipboardSuccess
The function was successful.
XmClipboardLocked
The function failed because the clipboard was locked by another application. The application can continue to call the function
again with the same parameters until the lock goes away. This gives the application the opportunity to ask if the user wants to
keep trying or to give up on the operation.
RELATED XmClipboardRetrieve(3), XmClipboardStartCopy(3), and XmClipboardStartRetrieve(3).
XmClipboardEndRetrieve(library call)