10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
2. Shell Programming and Scripting
I need to write a script to :
list files with *.i extension in a directory and all its subdirectories + 30days old, save it in a file and then remove (2 Replies)
Discussion started by: lena keung
2 Replies
3. Shell Programming and Scripting
Hello,
I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but can't get it to work.
The thing I'm hung up on is that the folder names in the path can and do have... (5 Replies)
Discussion started by: twjolson
5 Replies
4. Shell Programming and Scripting
Hi All,
i need to move two types of files from a directory.
I have used the below command to find the files from the directory..
SOURCE_DIR="some directory path"
TARGET_DIR="Target Dir"
Datestamp=Date_format
find $SOURCE_DIR \( -name "*.log" -o -name "*.out" ) - exec ls -1 {} \;
now i... (9 Replies)
Discussion started by: ch33ry
9 Replies
5. Shell Programming and Scripting
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies
6. UNIX for Dummies Questions & Answers
I have some empty files that were created from a script I ran that I cannot delete using the rm command.... any ideas as how I can delete them?
-rw-r--r-- 1 schroeks x_exp 0 Jul 21 08:24 rrd15CEC
-rw-r--r-- 1 schroeks x_exp 0 Jul 21 11:37 rrd15CEC
-rw-r--r-- ... (20 Replies)
Discussion started by: freddie88
20 Replies
7. UNIX for Dummies Questions & Answers
I'm trying to remove several directories which contains sun-dirs and files inside.
I used the command rm -r <dirname>
But, it always ask "examine file in directory <dirname> yes/no?" line by line.
So, i need to write "y" for every line.
How can i skip this step and remove all directories with... (9 Replies)
Discussion started by: ppa108
9 Replies
8. Shell Programming and Scripting
Hi all,
I have the following question. Considder that in the directory /code the script remove.pl exists. What i want is to run this script and remove some files that exist in the directory /dir/tmp. I use the below code but it does not work.
system("cd /dir/code");
system("rm FileName");
... (6 Replies)
Discussion started by: chriss_58
6 Replies
9. UNIX for Dummies Questions & Answers
Hello
I'm new to this forum, so I did a quick scan of the FAQs to see if my problem had been addressed already, since I believe it is probably a very common need. I was surprised that I did not see anything obvious.
I need to remove all files from a directory that have a last modified date... (2 Replies)
Discussion started by: 2davidc8
2 Replies
10. HP-UX
Dear All
I am basic user of Unix.
i woul like to delete some files
(basically 05 and 0801111105) from unix directories but unable to delete it
I tried all option. rm , rm -f etc.. but not succeed.
Infact it also not allowing me to use chmod option so that i can grant 777 option to... (1 Reply)
Discussion started by: yogi_chavan
1 Replies
nisrmdir(1) User Commands nisrmdir(1)
NAME
nisrmdir - remove NIS+ directories
SYNOPSIS
nisrmdir [-if] [-s hostname] dirname
DESCRIPTION
nisrmdir deletes existing NIS+ subdirectories. It can remove a directory outright, or simply remove replicas from serving a directory.
This command modifies the object that describes the directory dirname, and then notifies each replica to remove the directory named
dirname. If the notification of any of the affected replicas fails, the directory object is returned to its original state unless the -f
option is present.
This command will fail if the NIS+ master server is not running.
OPTIONS
The following options are supported:
-i Interactive mode. Like the system rm(1) command the nisrmdir command will ask for confirmation prior to removing a direc-
tory. If the name specified by dirname is a non-fully qualified name this option is forced on. This prevents the removal of
unexpected directories.
-f Force the command to succeed even though it may not be able to contact the affected replicas. This option should be used
when a replica is known to be down and will not be able to respond to the removal notification. When the replica is finally
rebooted it will read the updated directory object, note that it is no longer a replica for that directory, and stop
responding to lookups on that directory. Cleanup of the files that held the now removed directory can be accomplished manu-
ally by removing the appropriate files in the /var/nis directory. See nisfiles(4) for more information.
-s hostname Specify that the host hostname should be removed as a replica for the directory named dirname. If this option is not present
all replicas and the master server for a directory are removed and the directory is removed from the namespace.
Special per-server and per-directory access restrictions may apply when this command updates the serving lists of the affected NIS+
servers. For more information, see nisopaccess(1).
OPERANDS
The following operand is supported:
dirname An existing NIS+ directory.
EXAMPLES
Example 1 Using the nisrmdir Command
To remove a directory bar under the foo.com. domain, one would use the command:
example% nisrmdir bar.foo.com.
To remove a replica that is serving directory bar.foo.com. one would use the command:
example% nisrmdir -s replica.foo.com. bar.foo.com.
To force the removal of directory bar.foo.com. from the namespace, one would use the command:
example% nisrmdir -f bar.foo.com.
ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ directory name is not fully qualified, each directory specified will be searched until
the directory is found. See nisdefaults(1).
EXIT STATUS
The following exit values are returned:
0 Successful operation.
1 Operation failed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
NIS+(1), nisdefaults(1), nisopaccess(1),nisrm(1), nisfiles(4), attributes(5)
NOTES
NIS+ might not be supported in future releases of the Solaris operating system. Tools to aid the migration from NIS+ to LDAP are available
in the current Solaris release. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.11 2 Dec 2005 nisrmdir(1)