Personally, I would avoid reading the output of ls -l because you could get false positives too easily. Maybe another approach might be better:-
Remove the dark read echo if you are happy that it should work.
Hi Friends,
Can anyone help me out with compressing multiple files.
I have multiple files in directory , I have to compress these into a single file,
I tried using
gzip -r outfile.gz file1 file2 file3.
It is not working
Thanks in advance for your help
S :) (5 Replies)
Hi All,
I would like to archive some of the scripts below(USFINUM042006_01.CSV
USFINUM042006_02.CSV and USFINUM042006_03.CSV )and also use a wildcard e.g. <command> USFINUM*.CSV. Also there are a lot of similar files but I want only the three latest files to be compressed. Which is the best... (3 Replies)
Hello,
On a Centos 5.0 server, Apache 2.2 delivers static html page. How could I compress those html pages to gain speed and save bandwidth? is there a utility that would be effective and save?
Thanks (2 Replies)
Hi folks,
I'm trying to compress a certain number of files from a cifs mount to a xfs mount, but cannot do it when the total size of the files is bigger than 2GB.
Is there any limitation for above 2GB?
OS is SLES 64bit
The files are maximum 1MB, so there are aprox. 2000 files to compress... (2 Replies)
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Hi ALL,
I am working on a folder where there are lot of files for the past one year. I need to compress a particular month files alone. suppose i need to compress the feb month files alone, what is the script we can use.
Thanks in advance (2 Replies)
Here's a sample of the data:
NAME BIRTHDAY SEX LOCATION AGE ID
Jim 05/11/1986 M Japan 27 86
Rei 08/25/1990 F Korea 24 33
Jane 02/24/1985 F India 29 78
I've been trying to sort files using the... (8 Replies)
Good evening:
Need your help please
Before deleting older logs from octobre 4th i need to identify which files i have to remove, for instance today is octobre 8ht, i need to remove files from October 4th
Because there are many files i can not list because error args too long, so
... (5 Replies)
Discussion started by: alexcol
5 Replies
LEARN ABOUT FREEBSD
zmore
ZMORE(1) BSD General Commands Manual ZMORE(1)NAME
zmore, zless -- view compressed files
SYNOPSIS
zmore [flags] [file ...]
zless [flags] [file ...]
DESCRIPTION
zmore is a filter that allows the viewing of files compressed with Lempel-Ziv encoding. Such files generally have a ``Z'' or ``gz'' exten-
sion (both the compress(1) and gzip(1) formats are supported). Any flags that are specified are passed to the user's preferred PAGER (which
is /usr/bin/more by default).
zless is equivalent to zmore but uses less(1) as a pager instead of more(1).
When multiple files are specified, zmore will pause at the end of each file and present the following prompt to the user:
prev_file (END) - Next: next_file
Where prev_file is the file that was just displayed and next_file is the next file to be displayed. The following keys are recognized at the
prompt:
e or q quit zmore.
s skip the next file (or exit if the next file is the last).
If no files are specified, zmore will read from the standard input. In this mode zmore will assume gzip(1) style compression since there is
no suffix on which to make a decision.
ENVIRONMENT
PAGER Program used to display files. If unset, /usr/bin/more is used (zmore) or /usr/bin/less (zless).
SEE ALSO compress(1), less(1), more(1)BSD October 22, 2014 BSD