The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Omitting the last 2 alphabets in the words
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Omitting the last 2 alphabets in the words
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
05-27-2009
colemar
Registered User
Join Date: Apr 2009
Location: Trento, Italy
Posts: 116
.Z suffix is not really a good test to ascertain if a file is compressed with
compress
.
I believe this is better:
Code:
if [[ $(file $MYFILE) = *"compressed data"* ]]
colemar
View Public Profile
Find all posts by colemar
Find colemar's past nominations received
Find colemar's present nominations given