I rarely use zip / unzip, but it worked for me as expected. This script creates a structure, zips it, renames the old directory, unzips from the archive, and compares the 2 resulting directory structures:
Producing:
Perhaps you can see from this what you should do next. The man pages and small experiments are often the best road to solutions ... cheers, drl
I'm using the following command to zip a project file, but when it finishes, the resulting zip file contains all the directories above the file I wanted zipped, myapp.app, each one empty until you get to the actual app.
zip -r myapp.app.zip ... (0 Replies)
Hello,
I am an amature at UNIX commands and functionality.
Please could you all assist me by replying to my below mentioned querry :
How can I upload a zip folder on a unix path from my windows folder?
Thanks guys
Cheers (2 Replies)
Hi guys,
I have a question about the zip command. Right now I have a directory with some files and folders on it that I want to compress. When I run the zip command:
zip foo -r
I am getting a foo.zip file that once I unzip it contains a foo folder. I want to create the foo.zip, but that... (1 Reply)
Hi guys,
I'm trying to do the following:
zip -r /tmp/foo.zip public/accounts/foo
But the zip that's been made has the whole "public/accounts/foo" path. I want only the foo folder to be zipped. How can I do this? Thanks,
Elías (2 Replies)
Hi,
Is is possible to zip a folder and all its contents within the folder ( including sub-directories and files) into a zip file? and can regain the same structure if unzipped?
Thanks (6 Replies)
Does anyone know of a way to zip the resulting file from a find command?
My approach below finds the file and zips the entire directory path, which is not what I need.
After scanning the web, it seems to be much easier to perform gzip, but unfortunately the approach must use zip.
find `$DIR`... (5 Replies)
HI All
I have one master folder : ABCXYZ
I have sub folder in there :
AB
XY
AZ
AC
PR
AL
Now i want to copy AB , PR ,AL in to one new folder and zip it with time stamp.
like
Pre_02192013_12_32.zip
Zip folder should be in master folder. (2 Replies)
Hi,
How do I write a script that will automatically find and zip any folder to the same name in a directory and affected recursively?. The zip file should be place in the same directory where the source folder is. Help is appreciated. Thanks in advance.
ex:
Orange Crayon
Blue Crayon... (5 Replies)
I have a simple function that greps within a folder into files that are already gunzipped. This was already written for me so from my understanding fn=$1 specifies that it will look into any file in that folder that is gunzipped and the rest of the script greps the data its looking for and puts it... (3 Replies)
Hi Folks -
Happy Friday and I hope you all are well!
What's the easiest way to tar.gz / zip all direct children directories in a folder that have the string _EBASE (suffix)?
Thank you! (6 Replies)
Discussion started by: SIMMS7400
6 Replies
LEARN ABOUT V7
flists
FLIST(1) [nmh-1.5] FLIST(1)NAME
flist, flists - list the number of messages in given sequence(s)
SYNOPSIS
flist [+folder1 [+folder2 ...]] [-sequence name1 [-sequence name2 ...]] [-all | -noall] [-showzero | -noshowzero] [-recurse | -norecurse]
[-fast | -nofast] [-alpha | -noalpha] [-version] [-help]
flists is equivalent to flist -all
DESCRIPTION
Flist is used to search a list of folders and display the number of messages in these folders that are in a given sequence or set of
sequences (for example the "unseen" sequence). This is especially useful if you use some mechanism such as slocal or procmail (typically in
conjunction with rcvstore) to pre-sort your mail into different folders before you view it.
By default, the command flist will search the current folder for the given sequence or sequences (usually "unseen"). If (possibly multi-
ple) folders are specified on the command line with +folder, then all these folders are searched for the given sequence(s). Flist will
display for each folder searched, the number of messages in each of the specified sequences, and the total number of messages.
The option -sequence is used to specify the name of a sequence in which to search for. This option may be used multiple times to specify
multiple sequences. If this is not given, then the default is to search for all the sequences specified by the "Unseen-Sequence" profile
component. For more details about sequences, read the mh-sequence(5) man page.
Typically, flist will produce a line for each sequence, for every folder that is searched, even those which do not contain any messages in
the given sequence. Specifying -noshowzero will cause flist to print only those folder/sequence combinations such the folder has a non-
zero number of messages in the given specified sequence.
If -recurse is given, then for each folder that is search, flist will also recursively descend into those folders to search subfolders for
the given sequence.
If -fast is given, only the names of the folders searched will be displayed, and flist will suppress all other output. If this option is
used in conjunction with -noshowzero, then flist will only print the names of those folders searched that contain messages in in at least
one of the specified sequences.
Multiple Folders
If the option -all is given (and no folders are specified with +folder), then flist will search all the folders in the top level of the
users nmh directory. These folders are all preceded by the read-only folders, which occur as "atr-cur-" entries in the user's nmh context.
An example of the output of flist -all is:
/work/Mail has 5 in sequence unseen (private); out of 46
inbox+ has 10 in sequence unseen ; out of 153
junklist has 0 in sequence unseen ; out of 63
postmaster has 1 in sequence unseen ; out of 3
The "+" after inbox indicates that it is the current folder.
The "private" flag indicates that the given sequence for that folder is private. See the mh-sequence(5) man page for details about private
sequences.
If the option -all and +folder are both specified, then flist will search this folder, and all its first level subfolders for the given
sequence. You may specify multiple folders in this way.
If flist is invoked by a name ending with "s" (e.g. flists), then the switch -all is assumed by default.
The sorting order for the listing is alphabetical (with -alpha), or in a priority order defined by the "Flist-Order" profile entry (with
-noalpha). Each item in the "Flist-Order" is a folder name or a folder name pattern that uses * to match zero or more characters. Longer
matching patterns have precedence over shorter matching patterns. For example:
Flist-Order: personal petproject mh* * admin *junk
This order puts a few interesting folders first, such as those with mail addressed to you personally, those about a pet project, and those
about mh-related things. It places uninteresting folders at the end, and it puts everything else in the middle in alphabetical order.
FILES
$HOME/.mh_profile The user profile
PROFILE COMPONENTS
Path: To determine the user's nmh directory
mh-sequences: File that contains public sequences
Unseen-Sequence: The name of the unseen message sequence
Flist-Order: To sort folders by priority
SEE ALSO folder(1), rcvstore(1), slocal(1), mh-sequence(5)DEFAULTS
`-sequence' defaults to Unseen-Sequence profile entry
`-showzero'
`-noall'
`-norecurse'
`-noalpha'
`-nofast'
CONTEXT
If +folder is given, it will become the current folder. If multiple folders are given, the last one specified will become the current
folder.
MH.6.8 11 June 2012 FLIST(1)