We have to convert a sequential file to a 80 char line sequential file (HP UX platform).The sequential file contains special characters. which after conversion of the file to line sequential are getting coverted into "new line" or "tab" and file is getting distorted. Is there any way to read these... (2 Replies)
I was hoping someone ould help me with the following.
I have 2 files in a directory FILEA and FILEB. i am running a process on these 2 files but before the process can run both FILEA and FILEB need to be present.
If one or both the files are missing i need to know what file(s) is(are)... (10 Replies)
I'm trying to write a script that will look in an /exports folder for the oldest export file and move it to a /staging folder. "Oldest" in this case is actually determined by date information embedded in the file names themselves.
Also, the script should only move a file from /exports to... (6 Replies)
I have a need to compare 2 files, then print results to file. Need to find items from file2 that are not found in file 1. thanks in advance!
example:
file 1:
abcde=12
fffff=6
bbbb=35
file2:
abcde=12
fffff=6
bbbb=35
ccccc=10
kkkkk=45 (8 Replies)
I have the following script and want to check if in each $f there exists either a "drw" or "smp" tag in the file name. How can I do it?
For example
npt06-32x24drw has the "drw" tag
npt06-32x24smp has the "smp" tag
npt06-32x24 no "drw" or "smp" tag found
#!/bin/csh
set iarg = 0... (0 Replies)
Hi, I have a series of files (upwards of 500) the filename format is as follows
CC10-1234P1999.WGS84.p190
each of this files is in a directory named for the file but excluding the extension.
Now the last three numeric characters, in this case 999, can be anything from 001 to 999, I need to... (3 Replies)
Hi there,
Firstly, I have no experience with shell scripts so would really appreciate some help.
I have the following shell script that is causing some problems:
moveit()
{
&& set -x
if
then
DOUBLE_DELIVERY=$(grep... (6 Replies)
I am running a UNIX script to get unused files and their sizes from the server. The issue is arising due to the spaces present in the filename/folder names.Due to this the du -k command doesn't work properly.But I need to calculate the size of all files including the ones which have spaces in them.... (4 Replies)
I'm interested in writing a report script using BASH that searches all of the files in a particular directory for a keyword and printing a list of files containing this string...
In fact this reporting script would have searches for multiple keywords, so I'm interested in making multiple... (2 Replies)
The below awk in bold will look for the ids in file1 in $2 of file2 and if they match print the line in file2. If an id is missing or not found in file2 (like BMPR2 in line4 of file1) I can not figure out how to add it to them to the lines in the output as missing in $3 following the same format.... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
ioping
IOPING(1) User Commands IOPING(1)NAME
ioping - simple disk I/O latency monitoring tool
SYNOPSYS
ioping [-LCDRq] [-c count] [-w deadline] [-p period] [-i interval] [-s size] [-S wsize] [-o offset] device|file|directory
ioping -h | -v
DESCRIPTION
This tool lets you monitor I/O latency in real time.
OPTIONS -c count
Stop after count requests.
-w deadline
Stop after deadline time passed.
-p period
Print raw statistics for every period requests.
-i interval
Set time between requests to interval (1s).
-s size
Request size (4k).
-S size
Working set size (1m).
-o offset
Offset in input file.
-L Use sequential operations rather than random. This also sets request size to 256k (as in -s 256k).
-C Use cached I/O.
-D Use direct I/O.
-R Disk seek rate test (same as -q -i 0 -w 3 -S 64m).
-q Suppress human-readable output.
-h Display help message and exit.
-v Display version and exit.
Argument suffixes
For options that expect time argument (-i and -w), default is seconds, unless you specify one of the following suffixes (case-insensitive):
us, usec
microseconds
ms, msec
milliseconds
s, sec seconds
m, min minutes
h, hour
hours
For options that expect "size" argument (-s, -S and -o), default is bytes, unless you specify one of the following suffixes (case-insensi-
tive):
s disk sectors (a sector is always 512).
k, kb kilobytes
p memory pages (a page is always 4K).
m, mb megabytes
g, gb gigabytes
t, tb terabytes
For options that expect "number" argument (-p and -c) you can optionally specify one of the following suffixes (case-insensitive):
k kilo (thousands, 1 000)
m mega (millions, 1 000 000)
g giga (billions, 1 000 000 000)
t tera (trillions, 1 000 000 000 000)
EXIT STATUS
Returns 0 upon success. The following error codes are defined:
1 Invalid usage (error in arguments).
2 Error during preparation stage.
3 Error during runtime.
EXAMPLES
ioping .
Show disk I/O latency using the default values and the current directory, until interrupted.
ioping -c 10 -s 1M /tmp
Measure latency on /tmp using 10 requests of 1 megabyte each.
ioping -R /dev/sda
Measure disk seek rate.
ioping -RL /dev/sda
Measure disk sequential speed.
SEE ALSO
Homepage <http://code.google.com/p/ioping/>.
AUTHORS
This program was written by Konstantin Khlebnikov <koct9i@gmail.com>.
Man-page was written by Kir Kolyshkin <kir@openvz.org>.
July 2011 IOPING(1)