Hello,
I have problems executing a script in ksh with this script named
process.sh:
ps -ef | grep process.sh | grep -v grep | wc -l | read a
if
then
echo "The script is running"
exit 0
fiThe problem is that when I execute the script, sometimes it shows the
message "The script is... (10 Replies)
i have a bad problem with multiple occurances of the same file in
different directories.. how this happened i am not sure! but I know
that i can use awk to scan multiple directory trees to find an
occurance of the same file... some of these files differ somwhat
but that does not matter! the... (4 Replies)
Okay so here's something that's confusing me: I have a script that's designed to remove the words "new_" from the front of any file except two exceptions and it looks something like this...
for i in new_*
do
if ] && ]; then
j=`echo "$i"|cut -c5-`
mv $i $j
fi
done
... (5 Replies)
If I run:
find /somefolder -type f -size -7M | wc -l
I get 73594 files
But when I run
find /somefolder -type f -size -7M -exec /bin/cp -v {} /someotherfolder/ \;
it only copies 38891 of the files to the folder, why? There's a mix of all types of files in /somefolder. Is there some other... (12 Replies)
Hi,
In a directory, e.g. ~/corpus is a lot of files and subdirectories. Some of the files are named:
12345___PP___0902___AA.txt
12346___PP___0902___AA. txt
12347___PP___0902___AA. txt
The amount of files varies. I need to keep the highest (12347___PP___0902___AA. txt) and remove... (5 Replies)
Hi Gents,
I have 1 files as seen below.
44571009 100
42381900 101
23482389 102
44571009 103
28849007 104
28765648 105
25689908 106
28765648 107
42381900 108
44571009 109
17298799 110
44571009 111
I would like to get something like it
44571009 100 103 109 111 (3 Replies)
The contents of my home directory:
bin Desktop Documents Downloads folders Music Pictures Public Templates Videos
When I run the command for file in /home/myself/*d*; do if ; then echo $file; fi; doneit finds
/home/myself/Downloads
/home/myself/Videos
but not "folders".
... (5 Replies)
Discussion started by: Xubuntu56
5 Replies
LEARN ABOUT FREEBSD
ckdist
CKDIST(1) BSD General Commands Manual CKDIST(1)NAME
ckdist -- check software distributions
SYNOPSIS
ckdist [-airsx] [-d dir] [-n name] [-t type] file ...
DESCRIPTION
The ckdist utility reads ``checksum'' files (which are assumed to specify components of a software distribution) and verifies the integrity
of the distribution by validating the checksum of each component file. Both MD5 (128-bit ``message digest'') and .inf (32-bit CRC) checksum
formats are supported.
The file operands may refer to regular files or to directories. Regular files named md5, or which have an .md5 or an .inf extension, are
assumed to be of the implied type, otherwise format is determined from content. If a directory is specified, it is searched for appropri-
ately-named files only.
The options are as follows:
-a Report on all distribution components, not just those in respect of which errors are detected.
-i Ignore missing distribution components.
-r Search specified directories recursively.
-s Suppress complaints about inaccessible checksum files and directories.
-x Verify the existence of distribution components (and also check sizes, in the case of .inf files), but omit the more time-
consuming step of actually computing and comparing checksums.
-d dir Look for distribution components in the directory dir.
-n name Access distribution components using the filename name. When accessing .inf file components, append the appropriate exten-
sion to the filename.
-t type Assume that all specified checksum files are of the format type, and search directories only for files in this format (where
type is either md5 or inf).
EXIT STATUS
The ckdist utility exits with one of the following values:
0 No errors were detected.
1 Errors were found in a distribution.
2 Usage errors, inaccessible input files, or other system errors were encountered.
SEE ALSO cksum(1), md5(1)NOTES
Both BSD and DOS versions of ckdist are available.
BSD January 20, 1997 BSD