You could build the list of files you want you get with find, but instead of executing the gzip, redirect the output to a temporary file, have a second list which works as your exclude, use something like a
and decide by this to compress them or not.
When I boot FreeBSD from cd/floppy, it skips the UserConfig program. I have no idea why! And if I skip this step, my hardware won't work. ( I already tried...) Can anyone help me with this??? (2 Replies)
Hi,
how can I skip the new line of echo? In SH!!!!
echo "the date is :"
date
and result I want is
the date is : Tue Oct 11 22:24:37 WEST 2005
I've already tried including the \c inside the echo, but it didn't work.
Thanks! (2 Replies)
hi
the step 'upgrading the rpm' is taking a long tme. and since I am not interested in uninstallation, is there a way to skip this step?
thx (4 Replies)
Hello,
I am trying to write a bash shell script that does the following:
1.Finds all *.txt files within my directory of interest
2. reads each of the files (25 files) one by one (tab-delimited format and have the same data format)
3. skips the first 10 rows of the file
4. extracts and... (4 Replies)
Hi all
I have some script like this
#!/bin/bash
mv /tmp/file1 tmp/file2
if ] ; then
cp /tmp/filetest/ tmp/file3
if ] then
echo "succes"
else
echo "failed"
fi
else
echo "failed"
fi
i didn't try to see if it's work, the thing is that i don't care if... (4 Replies)
Hi,
I would like to read an input from keyboard using getchar. However, if no input (No Carriage return/new line none whatsoever) is given after say, 5 seconds, I would like to skip the getchar and move on. How do I do this in C. I'm using GNU compiler set.
Thanks, (5 Replies)
Hi,
I have an awk code that reads an input file, checks the 4th column and tells if its fine.
#!/bin/ksh
{ if ($4 == 0)
print "fine"
else
print "some problem" }' FILENAME
My problem is that, I dont want to check the first 3 and last 3 lines.
This can be hard coded by using BEGIN and END... (9 Replies)
Hi,
I want to copy data from one directory to another in csh script. But in that i want to skip certain types of file. How can i do that.
Currently i am copying all the files as mentioned below..
foreach d ( $TEST_PATH/*)
cp -R $d $PWD
end
now i want to skip files... (3 Replies)
Platform: Oracle Enterprise Linux 6.2
I have several files like below. I want to remove all files except one file
For example , I want to remove all the files below except dasd_91197.trc
$ ls -alrt *.trc
-rw-r----- 1 ecmdev wms 8438784 May 7 21:30 dasd_91177.trc
-rw-r----- 1 ecmdev wms ... (3 Replies)
Discussion started by: John K
3 Replies
LEARN ABOUT SUNOS
gzegrep
GZGREP(1) General Commands Manual GZGREP(1)NAME
gzgrep, gzegrep, gzfgrep - search possibly compressed files for a regular expression
SYNOPSIS
gzgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
gzgrep is used to invoke the grep on compress'ed or gzip'ed files. All options specified are passed directly to grep. If no file is speci-
fied, then the standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and
fed to grep.
If gzgrep is invoked as gzegrep or gzfgrep then egrep or fgrep is used instead of grep. If the GREP environment variable is set, gzgrep
uses it as the grep program to be invoked. For example:
for sh: GREP=fgrep gzgrep string files
for csh: (setenv GREP fgrep; gzgrep string files)
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO grep(1), egrep(1), fgrep(1), gzdiff(1), gzmore(1), gznew(1), gzforce(1), gzip(1), gzexe(1)ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWgzip |
+--------------------+-----------------+
|Interface Stability | External |
+--------------------+-----------------+
NOTES
Source for gzip is available in the SUNWgzipS package.
GZGREP(1)