I use the command find to get all folder contents of a folder. The problem is, it also gives files from within other files with package contents. (.app, .rtfd, ...). Is there anyway to not do that ?
(I'm using OS X, I don't know if other OSes see package contents too)
One possible option: Well I'm not 100% sure it's possible but what about only searching through folders with a maxdepth of 1 ? So all files get found and if it's a folder, search it till maxdepth 1 and if it includes a folder do it again etc. ?
Thanks in advance
Last edited by JamesGreen; 09-02-2009 at 11:16 AM..
Hi All,
I am getting the following error when installing teh package kernel-source-2.6.10
ba-chroot:~# apt-get install kernel-source-2.6.10
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-source-2.6.10
thanks & Regards
Gauri (4 Replies)
Hi guys,
I am searching some files not equal to the pattern with this command
find ! -name "PATTERN" -type f
but my problem is the find command because he also search inside subdirectories and that's the thing i don't want that.
Is there any comand to ignore the directories... (4 Replies)
Friends,
Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ?
For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
I was wondering about the "Show Package Contents" option in OS X. I have a keynote file that I'm looking at. Exactly where are these contents or its directory stored, because they aren't visible in the Finder window, unless I obviously right click and choose to view them. And I don't think I can... (2 Replies)
Stupid question of the day.
How can I find a file that is associated with a package installed on my Ubuntu 12.04 desktop. More clarification, so if I:
lsof -p 11399
java 11399 davider mem REG 8,6 438211 265067 /usr/lib/java/jre1.7.0_07/lib/i386/libt2k.so
How can I... (4 Replies)
This may be ludicrously easy to most people, but I've been scratching my head today trying to do it.
I'm archiving data on a OpenServer 5.0.6a box using a combination of FIND, CPIO and BZIP2.
What I'd like to do is archive a range of folders, but ignore some.
For instance, if I have 5... (1 Reply)
Hi All,
I am scripting a program to find and archive files. There are certain file types that I do not want to archive. Below is the scenario.
I have created a lookup file which has details on folders days and file extensions that needs to be ignored
I have separated the individual into... (4 Replies)
Hi there.
I'm putting together a small cluster of Raspberry pis running Raspbian. They've all been setup identically from the same sd image.
They all update and install perfectly except one node which refuses to install anything. It has exactly the same login, network, user details etc,... (3 Replies)
My current find command does not support printf.
I need find package that supports printf on AiX 6.1 system.
Can anyone help me with the download link or where / how / if I can find it ?
Can it be installed at a different non default location so that it can be reference without... (5 Replies)
Discussion started by: mohtashims
5 Replies
LEARN ABOUT ULTRIX
rmf
rmf(1mh)rmf(1mh)Name
rmf - remove folder
Syntax
rmf [ +folder ] [ -help ] [ -[no]interactive ]
Description
The command removes all of the messages within the current folder, and then removes the folder itself. If there are any files within the
folder which are not part of MH, they are not removed, and an error message is displayed.
You can specify a folder other than the current folder by using the +folder argument. If you do not specify a folder, and cannot find the
current folder, asks you whether you want to delete instead.
If the current folder is removed, it makes current.
Note that the command irreversibly deletes messages that do not have other links, so use it with caution.
If the folder being removed is a sub-folder, the parent folder becomes the new current folder, and tells you that this has happened. This
provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list and returning to the current
folder from which the list was extracted.
Using to delete a read-only folder deletes the private sequence and current message information from the file, without affecting the folder
itself. If you have sub-folders within a folder, you must delete all the sub-folders before you can delete the folder itself.
Options-help Prints a list of the valid options to this command.
-interactive
-nointeractive
Asks for confirmation before deleting a folder. By default, deletes a folder and its messages without asking for confirmation.
If you specify the -interactive option, asks if you are sure before deleting the folder. You are advised to use this option,
since when deletes a folder its contents are lost irretrievably.
Examples
This example shows how asks for confirmation when the -interactive option is used:
% rmf -interactive +test
Remove folder "test"? y
Profile Components
Path: To determine the user's Mail directory
Files
The user profile.
See Alsormm(1mh)rmf(1mh)