Hi,
I have written one script to calculate total space of all file in one directory, ignoring subdirectory, it works fine.
Now, I've been trying to calculate all files which includes files in any subdirectories.
I use recursive function to do this, but it can work only if there is only one... (4 Replies)
Hi,
After checking all the UNIX threads, I am able to come up with a solution so far. I am working on a shell script where it moves the files to a certain directory. The conditions to check are
1) Check if the file exists in the current directory.
2) Check if the destination directory... (2 Replies)
I am writing a script which reads a file line by line and then assigns it to a variable like this 1090373422_4028715212.jpg. I have images with file name of this format in some other directory. In my script I want to assign variable with this file name and then find this filename in some other... (11 Replies)
Hi All,
I'm trying to use the find command to return matches for a directory and file.
For example, given the following directories:
/one/two/three/file1.txt
/one/three/two/file1.txt
/one/four/two/three/file1.txt
I'm expecting the following to be returned:
... (16 Replies)
Hi All,
The following find command lists the files which are 45 minutes older. But it searches for the sub directories also.
$ find . -type f -mmin +45 -print
./hello.txt
./test/hi.txt
./temp/now.txt
ls
hello.txt test temp
How can i modify the find command in such way that it finds... (4 Replies)
Hi ,
I am trying to write something to find the size of particular type of files in a directory & it's subdirectory and sum the size .. These types of file are found at directory level or its subdirectories level ..
#!/bin/ksh
FNAME='.pdf'
S_PATH=/abc/def/xyz
find $S_PATH -exec ls -lad... (4 Replies)
Hi Everyone,
I am looking for a simple way for replacing all the files under a directory that use the server "xsgd1234dap" with "xsdr3423pap".
For Example:
In the Directory,
$pwd
/home/nick
$ grep -l "xsgd1234dap" *.sh | wc -l
119
I have "119" files that are still using... (5 Replies)
I did this:
ls -lrRt | grep ^* | cksum *
but it is showing cksum of sub-directories.
Thanks You
Please use code tags when posting data and code samples, thank you. (3 Replies)
Hi Everyone!
Looking for some help with a script that will take all files in any given root folder (which are not already in a folder) and put them into separate folders with the name of each given file.
Any ideas?
Thank you! (1 Reply)
Hi All,
My directory structure is like
Directory1
SubDirectory1
SubDirectory2
SubDirectory3
I have main directories and subdirectories underneath. I want to write a shell script where I will be passing file name as a parameter, Now I want to find all the files in Directory1... (19 Replies)
Discussion started by: John William
19 Replies
LEARN ABOUT XFREE86
conflict
CONFLICT(8) [nmh-1.5] CONFLICT(8)NAME
conflict - search for alias/password conflicts
SYNOPSIS
/usr/lib/mh/conflict [-search directory] [-mail name] [-version] [-help] [aliasfiles ...]
DESCRIPTION
Conflict is a program that checks to see if the interface between nmh and the transport system is in good shape
Conflict also checks for maildrops in /var/mail which do not belong to a valid user. It assumes that no user name will start with `.', and
thus ignores files in /var/mail which begin with `.'. It also checks for entries in the group(5) file which do not belong to a valid user,
and for users who do not have a valid group number. In addition duplicate users and groups are noted.
If the -mail name switch is used, then the results will be sent to the specified name. Otherwise, the results are sent to the standard
output.
The -search directory switch can be used to search directories other than /var/mail and to report anomalies in those directories. The
-search directory switch can appear more than one time in an invocation to conflict.
Conflict should be run under cron(8), or whenever system accounting takes place.
FILES
/etc/nmh/mts.conf nmh mts configuration file
/etc/passwd List of users
/etc/group List of groups
/usr/bin/mh/mhmail Program to send mail
/var/mail/ Directory of mail drop
PROFILE COMPONENTS
None
SEE ALSO mh-alias(5)DEFAULTS
`aliasfiles' defaults to /etc/nmh/MailAliases
CONTEXT
None
MH.6.8 11 June 2012 CONFLICT(8)