It seems that you would want to replace the bold code by one or more:
commands. Given differences in case, differences in leading hyphens and/or spaces, and confusing uses of commas (sometimes separating lists of directories to be created and sometimes apparently being part of the name of a directory being created [<space>annovar,<space>stats]), I am not going to try to guess at which actual mkdir commands you need to do what you really want to do.
Hi,
I need to add more space to an exsisting /u partition by adding an additional physical drive, so that the additional space is added in continuation to the exsisting /u diskspace. Is it possible...if yes....how do I go about it.
Thanks,
Amit (1 Reply)
Hi All,
I need a solution for the following scenario.
I am the owner for the particular folder and I have given 777 permissions for some specific reasons. So others can able to create folders and files.
But when I am done with the work, I need to delete the folders which are created by... (4 Replies)
The `bash` below uses the oldest folder in the specified directory and logs it. The goes though an analysis process and creates a log. My problem is that if there are 3 folders in the directory folder1,folder2,folder3, the bash is using folder2 for the analysis eventhough folder1 is the oldest... (0 Replies)
The below bash is trying to list the folders in a specific directory. It seems close but adds the path to the filename, which basename could strip off I think, but not sure why it writes the text file created? This list of folders in the directory will be used later, but needs to only be the... (5 Replies)
In the bash below the oldest folder in a directory is selected. If there are 3folders in the directory /home/cmccabe/Desktop/NGS/test and nothing is done to them (ie. no files deleted, renamed) then the bash correctly identifies f1 as the oldest. However, if something is done to the folder then... (4 Replies)
Hello, how in bash i can get directory loop, but only choose those folders with specific word in it, so it will only echo those with specific word
#!/bin/bash
for filename in /home/test/*
do
if ; then
echo $filename;
fithx! (4 Replies)
Hello all,
do you know any way i can i move folders and its content if folder is older than 1,5 days in bash?
I tried:
find /home/xyz/DATA/* -type d -ctime +1.5 -exec mv "{}" /home/xyz/move_data_here/ \;All i got was that Files from DATA /home/xyz/DATA/* ended messed up in... (1 Reply)
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
In the bash below in each .zip there is a folder to be extracted Variants that I am trying to make unique by adding the prefix, before the _ from the .zip. The script does execute, but the prefix is not added to the extracted folder. Rather the Variants folder is added to each file within it. Thank... (1 Reply)
In the below bash I am trying to ensure that all folders (represented by $folders) in a given directory are created. In the file f1 the trimmed folder will be there somewhere (will be multiple trimmed folders).
When that trimmed folder is found (represented by $S5) the the contents of $2 printed... (19 Replies)
Discussion started by: cmccabe
19 Replies
LEARN ABOUT ULTRIX
folders
folders(1mh)folders(1mh)Name
folders - list folders and contents
Syntax
folders [ +folder ] [ msg ] [ options ]
Description
The command displays the names of your folders and the number of messages that they each contain.
The command displays a list of all the folders in your Mail directory. The folders are sorted alphabetically, each on its own line. This
is illustrated in the following example:
Folder # of messages ( range ); cur msg (other files)
V2.3 has 3 messages ( 1- 3).
adrian has 20 messages ( 1- 20); cur= 2.
brian has 16 messages ( 1- 16).
chris has 12 messages ( 1- 12).
copylog has 242 messages ( 1- 242); cur= 225.
inbox+ has 73 messages ( 1- 127); cur= 127.
int has 4 messages ( 1- 4); cur= 2 (others).
jack has 17 messages ( 1- 17); cur= 17.
TOTAL= 387 messages in 8 folders.
The plus sign (+) after inbox indicates that it is the current folder. The information about the folder includes the term (others). This
indicates that the folder contains files which are not messages. These files may be either sub-folders, or files that do not belong under
the MH file naming scheme.
The command is identical to the effect of using the -all option to the command.
If you use with the +folder argument, it will display all the subfolders within the named folder. as shown in the following example:
% folders +test
Folder # of messages ( range ); cur msg (other files)
test+ has 18 messages ( 1- 18); (others).
test/testone has 1 message ( 1- 1).
test/testtwo has no messages.
TOTAL= 19 messages in 3 folders.
See for more details of sub-folders.
Options-fast
-nofast Lists only the name of folders, with no additional information. This is faster because the folders need not be read.
-help Prints a list of the valid options to this command.
-list
-nolist Lists the contents of the folder-stack. No +folder argument is allowed with this option.
-pack
-nopack Re-numbers messages in the folders. Messages are re-numbered sequentially, and any gaps in the numbering are removed. The
default operation is -nopack, which does not change the numbering in the folder.
-pop Discards the top of the folder-stack, after setting the current folder to that value. No +folder argument is allowed with this
option. This corresponds to the operation in the C-shell; see The -push and -pop options are mutually exclusive: the last occur-
rence of either one overrides any previous occurrence of the other.
-push Pushes the current folder onto the folder-stack, and makes the +folder argument into the current folder. If +folder is not
given, the current folder and the top of the folder-stack are exchanged. This corresponds to the operation in the C-shell; see
The -push switch and the -pop switch are mutually exclusive: the last occurrence of either one overrides any previous occurrence
of the other.
-recurse
-norecurse
Lists folders recursively. Information on each folder is displayed, followed by information on any sub-folders which it con-
tains.
-total
-nototal Displays only the total number of messages and folders in your Mail directory. This option does not print any information about
individual folders. It can be suppressed using the -nototal option.
The defaults for are:
+folder defaults to all
msg defaults to none
-nofast
-noheader
-nototal
-nopack
-norecurse
Restrictions
MH does not allow you to have more than 100 folders at any level in your Mail directory.
Profile Components
Path: To determine your MH directory
Folder-Protect: To set protections when creating a new folder
Folder-Stack: To determine the folder stack
lsproc: Program to list the contents of a folder
Files
The user profile.
See Alsocsh(1), folder(1mh), refile(1mh), mhpath(1mh)folders(1mh)