Instead of using:
to get your intermediate directory names, you could try:
If I understood what you're trying to do correctly, the following shell script seems to do what you want. (I usually use the Korn shell, but this script will work with any shell that performs basic POSIX conforming parameter expansions. It was tested with ksh and bash.)
Obviously, you should verify that the cd. mkdir and mv commands all succeed and this script should exit with a non-zero exit status if any errors were detected.
Hello,
Is there anyway to tell which set of Hitachi array the disks belong to? I'm remotely located so I cannot do the physical check.
The possible Hitachi arrays are: AMS1000 and 9570
This is what I see on the format:
2. c2t50060E800475EA02d1 <HITACHI-OPEN-V*9-SUN-5007 cyl 65533 alt 2... (0 Replies)
Hello folks,
I am trying to accomplish the following:
1. Create home folders for each user
2. Create a public folder where all users can access
3. Use Samba as a domain controller.
I have successfully completed issue 1. But I can't get the second issue to work. Below is my config file.... (0 Replies)
Hi All,
I am trying to write a script to get the user information & the command executed.
I tried something like this :
w | sort | awk '{print$5$6$7}'
My requirement is to identify the users who execute the same command at same time.
I need the user name & the... (2 Replies)
Hi everyone I am new to the forums.
I haven't done much linux myself but I have been asked if I can do the following.
Write a linux script that needs to scan a certain folder every x amount of minutes and if there is a file in the folder then it needs to call a different script.
Is this... (2 Replies)
Hi!
I have a difficult problem, to step up a unknown version number in a text file, and save the file. It would be great to run script.sh and the version gets increased.
Example the content of the textfile.txt
hello
version = x
bye
This include three steps
1. First find the char after... (2 Replies)
Hi ,
i need your advice.
i will find all *.pdf files and make a folder for every different prefix of file names.
for example:
test_21424234.pdf
new_242342.pdf
at the and i will that i create ( if not exits ) a new folder "test" and "new" , afterwards i will move the file in this new... (3 Replies)
Discussion started by: Maxwill
3 Replies
LEARN ABOUT SUNOS
mlib_imageerode4_fp
mlib_ImageErode4_Fp(3MLIB) mediaLib Library Functions mlib_ImageErode4_Fp(3MLIB)NAME
mlib_ImageErode4_Fp - four neighbor erode
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageErode4_Fp(mlib_image *dst, const mlib_image *src);
DESCRIPTION
The mlib_ImageErode4_Fp() function performs an erode operation on an image by using each pixel's four orthogonal neighbors. The source and
destination images must be single-channel images. The data type of the images can be MLIB_FLOAT or MLIB_DOUBLE.
For 4-neighbor grayscale images, it uses the following equation:
dst[x][y][0] = MIN{ src[x][y][0],
src[x-1][y][0], src[x+1][y][0],
src[x][y-1][0], src[x][y+1][0] }
where x = 1, ..., w-2; y = 1, ..., h-2.
PARAMETERS
The function takes the following arguments:
dst Pointer to destination image.
src Pointer to source image.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_ImageErode4(3MLIB), mlib_ImageErode8(3MLIB), mlib_ImageErode8_Fp(3MLIB), attributes(5)SunOS 5.10 10 Nov 2004 mlib_ImageErode4_Fp(3MLIB)