Sponsored Content
Top Forums Shell Programming and Scripting How to deleting some files under subdirectory Post 302226917 by manosubsulo on Wednesday 20th of August 2008 06:55:52 AM
Old 08-20-2008
For deleting the file that starts with A200808*, u can use the below code

rm -f ls -1 Folder/10*/pm_data/A200808*
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can I copy files and subdirectory?

I am trying to copy some files from one location to another and I need to write a script to move all the files and the subdirectories to the new location (both unix), but excluding the temp directory. i.e., I want to avoid copying my temp subdirectories during the process of copying other files... (3 Replies)
Discussion started by: odogbolu98
3 Replies

2. UNIX for Dummies Questions & Answers

[Question]How to copy files to all subdirectory

I want to copy php.ini to all subdirectory. what command that should i run? (2 Replies)
Discussion started by: dzufauzan
2 Replies

3. Shell Programming and Scripting

Count files in every subdirectory

Hi if anyone could help me :) I did a lot of search and 70% of answer is "how to count files in all subdirectories". A basic problem for me is how to count files in every subdirectory separately then sort it by number of files For example: dir1 file1 file2 subdir11 dir2 dir3 ... (3 Replies)
Discussion started by: yorryk
3 Replies

4. Solaris

How Prevent from deleting subdirectory files

Hi All, I am using the foolowing find /home/vcrd/put -name '*.z' -mtime +5 -exec rm -f {} \; in a shell script, it is deleting all file having *.z in /home/vcrd/put/appl sub directory. I donot want the files in the subdirectory are deleted. Regards Megh (2 Replies)
Discussion started by: megh
2 Replies

5. Shell Programming and Scripting

search text in files within the subdirectory

Hello, I am trying to write a shell script to search for a pattern in the directory and show only one entry for each field, essentially I am looking to search for a pattern in a file and list that file name. (1 Reply)
Discussion started by: grajp002
1 Replies

6. UNIX for Dummies Questions & Answers

How to move all files in a directory and subdirectory?

I'm trying to organize my MB Pro by moving all my jpeg files to a single folder from the desktop. There are some on the desktop that are not in any folder. I was at the command line and typed mv *.jpg "Jpeg files" but it only moved the files that were on the desktop, not any of the ones that... (3 Replies)
Discussion started by: Straitsfan
3 Replies

7. UNIX for Dummies Questions & Answers

Listing files in subdirectory

Forgive me if there is an answer to this somewhere in the forums. I've gone through as much as I could but couldn't find a relevant answer. What I'm trying to do is use the ll command to list some files in a subdirectory that matches a certain format. I've tried ll *.*a* <subdirectory> but... (3 Replies)
Discussion started by: archaic
3 Replies

8. UNIX for Dummies Questions & Answers

How to Find files in subdirectory?

I am trying to find all DAT files in a subdirectory named IN. I do not know the entire path. For example: /stage/<?>/<?>/IN/file.DAT I am using the find command without success: find /stage -name IN -a -name '*.DAT' -print What is the correct logic and syntax? Thank you for the help. (5 Replies)
Discussion started by: TwinGT
5 Replies

9. Shell Programming and Scripting

Copying Multiple Files into a Subdirectory

Hello, I'm very new to scripting languages and I'm to use shell script to write a utility to backup files with a specific extension into a subdirectory. Here is what I have done. #!/bin/bash read -p "Enter file(s) extension: " FILE if ; then mkdir `whoami`.$FILE #To... (9 Replies)
Discussion started by: alphanoob
9 Replies

10. UNIX for Dummies Questions & Answers

Copy non-empty files into subdirectory

How to Copy non-empty files into subdirectory I have directory A there are bunch of files: a.txt a.txt.target b.txt b.target.txt....... How can i find out the non-empty file within *.txt.target and copy them into a subdirectory B? Thank you. (2 Replies)
Discussion started by: grace_shen
2 Replies
OPENCHANGEPFADMIN(1)					     OpenChange Users' Manual					      OPENCHANGEPFADMIN(1)

NAME
openchangepfadmin - Exchange users and Public Folder administration tool SYNOPSIS
openchangepfadmin [-?] [-?|--help] [--usage] [-f|--database PATH] [-p|--profile PROFILE] [-P|--password PASSWORD] [--apassword=PASSWORD] [--adesc=DESCRIPTION] [--acomment=COMMENT] [--afullname=NAME] [--list] [--mkdir] [--rmdir] [--comment=COMMENT] [--dirclass=CLASS] [--adduser=USERNAME] [--rmuser=USERNAME] [--addright=RIGHT] [--rmright] [--modright=RIGHT] [--debuglevel=LEVEL] [--dump-data] [--folder=FOLDER] [--username=USERNAME] DESCRIPTION
openchangepfadmin is a administrative command line tool designed to facilitate user management related operations (create, delete, modify) on a remote Exchange server and manage public folder store and permissions. COMMANDS
--adduser=USERNAME Create a Exchange user with the username specified by USERNAME --rmuser=USERNAME Delete the Exchange user account specified by USERNAME --list List Public Folder hierarchy (IPM_SUBTREE) --mkdir Create a folder in the Public Folder store --rmdir Delete a folder in the Public Folder store --addright=RIGHT Add permission and roles for a user on a Public Folder directory. --modright=RIGHT Modify permissions and roles for a user on a Public Folder directory --rmright Delete permissions and roles for a specific user OPTIONS
--database=DATABASE -f Set the MAPI profile database. If no database is specified, then openchangeclient tries to load the default one: $HOME/.open- change/profiles.ldb --profile=PROFILE -p Set the profile to use. If a profile is not specified, and one of the profiles has been set as the default in the profile database (for example, using mapiprofile -S), then that default profile will be used. --password -P Set the password for the profile to use. This can be omitted if the password is stored in the profile. --apassword=PASSWORD Define the password to set for the user specified with --adduser. If no password is explicitely supplied, openchangepfadmin will arbitrary set a random one. --adesc=DESCRIPTION This command can only be used with --adduser and specifies a description for this account --acomment=COMMENT This command can only be used with --adduser and specifies a comment for this account. --afullname=NAME This command can only be used with --adduser and specifies the user full name for this account. --comment=COMMENT This command can only be used with --mkdir and specifies a comment for the folder. --dirclass=CLASS This command can only be used with --mkdir and specifies the container class of the directory we want to create. Possible values are: IPF.Appointment, IPF.Contact, IPF.Journal, IPF.Note, IPF.StickyNote, IPF.Task, IPF.Post --folder=FOLDER This command can only be used with --addright, --modright and --rmright. Specify the folder where permissions and roles have to be changed. --username=USERNAME This command can only be used with --addright, --modright and --rmright. Specify the username we want to change permissions and roles for. --dump-data Dump the hex data. This is only required for debugging or educational purposes. --debuglevel LEVEL -d Set the debug level. EXAMPLES
Creating user openchangepfadmin --adduser=linuxowner --apassword=linuxowner --adesc="Linux Owner Test account" --afullname="Linux Owner" mapiadmin_user_add : MAPI_E_SUCCESS (0x0) username: linuxowner password: linuxowner Creates a user account with username and password set to linuxowner. Deleting user: openchangepfadmin --rmuser=linuxowner mapiadmin_user_del : MAPI_E_SUCCESS (0x0) Create Public Folder: openchangepfadmin --mkdir --folder=public_events --dirclass=IPF.Appointment Creates a folder in the Public Folder store named public_events with a container class set to Appointment. This folder will display calen- dar items. Delete Public Folder: openchangepfadmin --rmdir --folder=public_events List Public Folder hierarchy: openchangepfadmin --list Add Permission: openchangepfadmin --username=linuxowner --folder=public_events --addright=RoleOwner Permission RoleOwner added for linuxowner on folder public_events Modify Permission openchangepfadmin --username=Anonymous --folder=public_events --modright=RoleNone Permission changed to RoleNone for Anonymous on folder appointment Note that you can only change permissions for a user already listed in the ACL table. NOTE
Permissions and Roles possible values are: o RightsNone o RightsReadItems o RightsCreateItems o RightsEditOwn o RightsDeleteOwn o RightsEditAll o RightsDeleteAll o RightsCreateSubfolders o RightsFolderOwner o RightsFolderContact o RoleNone o RoleReviewer o RoleContributor o RoleNoneditingAuthor o RoleAuthor o RoleEditor o RolePublishAuthor o RolePublishEditor o RightsAll o RoleOwner SEE ALSO
AddUserPermission, ModifyUserPermission, RemoveUserPermission AUTHOR
Julien Kerihuel <j.kerihuel at openchange dot org> OpenChange 2.0 QUADRANT 2013-01-24 OPENCHANGEPFADMIN(1)
All times are GMT -4. The time now is 04:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy