10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I supposed that it was working fine but now I see that it's not working as expected.
I am running under ubuntu14.04, trusty.
My plan was to search folderA and all subdirectories and move any txt file to destination folder, folderB :
find /home/user/folderA/ -type f -iname "*.txt"... (0 Replies)
Discussion started by: baris35
2. Shell Programming and Scripting
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
3. UNIX for Beginners Questions & Answers
I want to move all the files in a given directory up one level.
I want to move all the files in Subdir1 up to Dir1 (then I want to ultimately delete Subdir1)
Ted (10 Replies)
Discussion started by: ftrobaugh
4. Shell Programming and Scripting
I am receiving files named like:
They are residing in a folder named Incoming.
I am supposed to write a script that will create a filelist which will contain only the name of the latest file beginning with ABC_, by YYYYMMDD... (3 Replies)
Discussion started by: kedrick
5. Shell Programming and Scripting
So I have another question. I'm trying to search for files with a certain extension and then move all of them up one level in the folder hierarchy.
So something like this:
I had some great help recently with another... (4 Replies)
Discussion started by: ideal2545
6. Shell Programming and Scripting
hi , could you help me with shell scripting
in a shell script i have these commands
a=`ls -R $dir | grep ./ `
cp -R ./$a/* ./$output/
with the first command i have all the directories with the second command i want to copy them in a new directory something like this... (2 Replies)
Discussion started by: faethon
7. Shell Programming and Scripting
I have the following subfolder with files:
And i have a set of new folders which have exactly the same structure as above but different disk without the files:
Now i would like to... (6 Replies)
Discussion started by: total_ysf
8. UNIX for Dummies Questions & Answers
Well I have a web with a very bad structure (a vBulletin forum) and I want it redirected to a newer folder in the same server but with a upper level folder.
Current structure is:
And I want it to be:... (0 Replies)
Discussion started by: Rafaweb
9. UNIX for Dummies Questions & Answers
I have a folder with a million subdirectories which all have a million files in them (some of them duplicates)..
I am looking for the right program command to move all of the files out of the directories and into one folder-- and replace all of the duplicates..
If anyone has any ideas,... (2 Replies)
Discussion started by: patrick99e99
10. UNIX for Dummies Questions & Answers
What is the purpose (function) of the following upper level directories: -
I have encountered these, but as i said, i am new to unix and i am not quite sure what they are and what their fucntions are.
Any help would be greatly... (2 Replies)
Discussion started by: carlvernon
RMF(1) [nmh-1.5] RMF(1)
rmf - remove an nmh folder
rmf [+folder] [-interactive | -nointeractive] [-version] [-help]
Rmf removes all of the messages (files) within the specified (or default) folder, and then removes the folder (directory) itself.
If there are any files within the folder which are not a part of nmh, they will not be removed, and an error will be produced. If the
folder is given explicitly or the -nointeractive option is given, then the folder will be removed without confirmation. Otherwise, the
user will be asked for confirmation. If rmf can't find the current folder, for some reason, the folder to be removed defaults to `+inbox'
(unless overridden by user's profile entry "Inbox") with confirmation.
If the folder being removed is a subfolder, the parent folder will become the new current folder, and rmf will produce a message telling
the user 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.
If rmf s used on a read-only folder, it will delete all the (private) sequences (i.e., "atr-seq-folder" entries) for this folder from your
context without affecting the folder itself.
Rmf irreversibly deletes messages that don't have other links, so use it with caution.
$HOME/.mh_profile The user profile
Path: To determine the user's nmh directory
Current-Folder: To find the default current folder
Inbox: To find the default inbox
`+folder' defaults to the current folder, usually with confirmation
`-interactive' if +folder' not given, `-nointeractive' otherwise
Rmf will set the current folder to the parent folder if a subfolder is removed; or if the current folder is removed, it will make "inbox"
current. Otherwise, it doesn't change the current folder or message.
Although intuitively one would suspect that rmf works recursively, it does not. Hence if you have a sub-folder within a folder, in order
to rmf the parent, you must first rmf each of the children.
MH.6.8 11 June 2012 RMF(1)