Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to delete many files in Unix Post 302146199 by skcontact on Monday 19th of November 2007 10:06:43 AM
Old 11-19-2007
How to delete many files in Unix

Hi,
I am tryting to delete 3 lakch files using below command.

rm 1000318*
it is showing a message "sh: /usr/bin/rm: The parameter list is too long."

please let me know how can i do this.

Thanks
Senthil
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to delete files in UNIX using shell script

Hi, I have the following task to perform using shell script. The user will provide a directory name along with a date. The script will delete all the files in the specified directory that was created earlier to that date. Also it should display the number of files that has been deleted. ... (7 Replies)
Discussion started by: theguy16
7 Replies

2. Shell Programming and Scripting

Delete files older than 2 days using shell script in Unix

I'm new to shell script.... can any one help... What is the shell script to delete the files older than 2 days ? (3 Replies)
Discussion started by: satishpabba
3 Replies

3. Shell Programming and Scripting

using c programming in unix to delete zero-byte files in a specified directory

we were asked to make a program that deletes all zero-byte files in a psecified directory. we need to use sysytem_calls like: scandir(),chdir(),stat() and remove(). (3 Replies)
Discussion started by: sogetsu009
3 Replies

4. Shell Programming and Scripting

Unix commands delete all files starting with "X" except "X" itself. HELP!!!!?

im a new student in programming and im stuck on this question so please please HELP ME. thanks. the question is this: enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
Discussion started by: soccerball
2 Replies

5. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurence of a specific word

Hello, I have several files in a specific directory. A specific string in one file can occur in another files. If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string. Example. file1 ShortName "Blue... (2 Replies)
Discussion started by: premier_de
2 Replies

6. Shell Programming and Scripting

delete old files thru unix script

I have to delete files older than 60 days from a windows directory. So I tried to include this script FTP_LOG=${DATA_TOP}/data_tmp/logfile FTP_CMDS=${DATA_TOP}/data_tmp/cmdfile echo "open ftp1" > ${FTP_CMDS} echo "user anonymous local" >> ${FTP_CMDS} echo "cd ${SRC_DIR}" >> ${FTP_CMDS} echo... (3 Replies)
Discussion started by: snair001
3 Replies

7. UNIX for Dummies Questions & Answers

Delete folders and files in it - UNIX

I need to delete a folder and files in it of yesterdays and simply put this in cron. Folder name - "2010-03-2010" File name - "eprod_06_23.dmp" and "eprod_06_23.exp" Actually this folder and file is been created by a script which takes a backup of DB everyday.Thats why it creates folder and file... (3 Replies)
Discussion started by: j_panky
3 Replies

8. Shell Programming and Scripting

Find and delete files and folders which are n days older from one unix server to another unix server

Hi All, Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older. Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies

9. Shell Programming and Scripting

Unix shell script to delete files on windows server

Hi experts, can anyone suggest me on the below: how to write a shell script to search and delete files on windows server. -script runs on unix box -it should search for specific files on windows server and delete them periodically. (2 Replies)
Discussion started by: chpradeepch
2 Replies

10. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
imqusermgr(1M)						  System Administration Commands					    imqusermgr(1M)

NAME
imqusermgr - command utility for managing a Message Queue user repository SYNOPSIS
/usr/bin/imqusermgr subcommand [[option]...] /usr/bin/imqusermgr -h /usr/bin/imqusermgr -v DESCRIPTION
The imqusermgr utility manages a file-based user repository to authenticate and authorize users of a Message Queue message server. imqusermgr provides subcommands for adding, deleting, updating, and listing user entries in the repository. imqusermgr supports four management subcommands. These subcommands, and their corresponding options follow the imqusermgr command on the command line. See USAGE and OPTIONS. The following subcommands are supported: add Add a new user and associated password to the repository. delete Delete a user from the repository. list Display information users in the repository. update Update the password or state of a user in the repository. OPTIONS
The following options are supported: -a active_state Specify if user's state is active or inactive. An inactive user cannot create connections to the Message Queue message server. Valid values for active_state are true or false. Specify true for active or false for inactive. the default is true. Use this option with the update subcommmand. -f Perform action without user confirmation. Use this option with the delete and update subcommmands. -g group Specify the group of the user. Valid values for group are admin, user, and anonymous. Use this option with the add subcommmand. -h Display usage help. Exceute nothing else on the command line. -i brokerName Specify the broker instance user repository to which the command applied. If you do not specify brokerName, the default brokerName is assumed. Use this option with the add, delete, list, and update subcommmands. -p password Specify user password. Use this option with the add and update subcommmands. -s Silent mode. Display no output Use this option with the add, delete, and update subcommands. -u userName Specify user name. userName cannot contain the following characters: asterisk (*), colon (:), NEWLINE, or RETURN. Use this option with the add, delete, update and list subcommands. -v Display version information. Exceute nothing else on the command line. USAGE
The following subcommands and corresponding options are supported: add -u userName -p password [-g group] [-s] [-i brokerName] Add a new user and associated password to the repository, and optionally specify the user's group. delete -u userName [-s] [-f] [-i brokerName] Delete a user from the repository. list [-u user_name] [-i brokerName] Display information about the specified user in the repository. If no user is specified, all users are displayed. update -u userName -p password [-a state] [-s] [-f] [-i brokerName] update -u userName -a state [-p password] [-s] [-f] [-i brokerName] Update the password or state (or both) of a user. ENVIRONMENT VARIABLES
The following environment variables affect the execution of this command: IMQ_JAVAHOME Specify the Java 2 compatible runtime. When this environment variable is not set, it defaults to /usr/j2se. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/etc/imq/passwd Flat-file user repository. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWiqu | +-----------------------------+-----------------------------+ SEE ALSO
imqadmin(1M), imqbrokerd(1M), imqcmd(1M), imqdbmgr(1M), imqkeytool(1M), imqobjmgr(1M), attributes(5) Sun Java System Message Queue Administrator's Guide SunOS 5.11 23 Mar 2004 imqusermgr(1M)
All times are GMT -4. The time now is 03:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy