04-29-2008
Thanks for the response. You're right, I just needed to gzip the files. I do want them individually though (for various reasons). The command that I eventually stumbled on and which works fine is :
for i in `ls -l`; do echo $i; bzip2 $i ; done
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi all
How to unzip .tgz files
waiting for suggestions
Praful (5 Replies)
Discussion started by: Prafulla
5 Replies
2. UNIX for Dummies Questions & Answers
Let's say I've got File.tgz that contains:-
Apple.txt
Banana.txt
Carrot.txt
AppleBanana.txt
Now, I would like to only extract files that contain the patter "Apple".
I've tried this
tar -xvf File.tgz 'tar -tf File.tgz | grep 'Apple''
but it does not work. Please help. Thanks. (12 Replies)
Discussion started by: percivalwcy
12 Replies
3. Shell Programming and Scripting
Hi All,
I am using the awk command to replace ',' by '\t' (tabs) in a csv file. I would like to apply this to all .csv files in a directory and create .txt files with the tabs.
How would I do this in a script?
I have the following script called "csvtabs":
awk 'BEGIN {
FS... (4 Replies)
Discussion started by: ScKaSx
4 Replies
4. Shell Programming and Scripting
Hi,
I have already created the tar files. which consist of some log files and Audit.csv
plz see the below code for that
================================================
tar -Pczf ARCH/${arc_date}.tgz $LOG/*.log $REYE/CEP/FiAdapter/Audit.${arc_date}.csv
... (3 Replies)
Discussion started by: pspriyanka
3 Replies
5. Shell Programming and Scripting
Say you don't want to unpack the whole thing, just individual files or directories within a .tgz. How to do this? (1 Reply)
Discussion started by: stevensw
1 Replies
6. Shell Programming and Scripting
Hi All,
I am completely stuck here.
I have a set of files (with names A.txt, B.txt until L.txt) which contain words like these:
computer
random access memory
computer networking
mouse
terminal
windows
All the files from A.txt to L.txt have the same format i.e. complete words in... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
7. Shell Programming and Scripting
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Discussion started by: goddevil
2 Replies
8. Solaris
I have some Solaris 9 systems and I'm interested in using the "fm" audit class to track changes to sensitive files but it's too verbose for it to be auditing to that level for EVERY file, so I was wondering if there were a way of restricting the audit of those events to particular files.
I... (0 Replies)
Discussion started by: thmnetwork
0 Replies
9. Shell Programming and Scripting
Hey,
I have number of .tgz files and want to extract the file with the ending *results.txt from each one.
I have tried
for file in *.tgz; do tar --wildcards -zxf $file *results.txt; doneas well as
list=$(ls *.tgz)
for i in $list; do tar --wildcards -zxvf $i *.results.txt; done... (1 Reply)
Discussion started by: jfern
1 Replies
10. UNIX for Dummies Questions & Answers
Hello,
i'm having a problem here with FreeBSD 9.2 . I've created a directory and downloaded the latest ntp-4.2.8p1-beta2 from ntp.org. Untar then into the directory and then
./configure all went OK. Then i had to modify some parameters in the config.h created with ./configure . Then
make... (2 Replies)
Discussion started by: Board27
2 Replies
VFU(1) VFU File Manager VFU(1)
NAME
vfu - VFU is console (text-mode) file manager for UNIX/Linux
SYNOPSIS
vfu [options]
DESCRIPTION
vfu has following features:
- Fast one-key commands
- Extended completition and wildcard expansion
- Directory tree with sizes (incl. sizes cache)
- File-type colorization (extension and type)
- Archives support (TAR, TGZ, BZ2, and many more)
- Simple FTP support through archive-like interface
- Internal text/hex file viewer and editor (optional)
- Extensive user-defined external support/utils
- Regular expressions selection and search
- Multiple file masks
- and much more...
OPTIONS
-h
prints help for command line options
-i
runs vfu in interactive mode (can be used with -d)
-d path
changes working directory to `path'
-r
rebuild directory tree
-t
view directory tree only
These options are for using vfu in partial non-interactive mode.
example: vfu -d /usr/local -i
CONFIGURATION
vfu configuration is divided in two parts (files):
vfu.conf
This file contains configuration for external editor and pager, favorite directories, file-type colorization. This is plain text file which
format is described below. vfu only reads vfu.conf, it never writes in it!
vfu.options
This file contains all Options/Toggles which can be changed from inside vfu -- Options menu. vfu.options is binary file and is overwritten
on vfu exit or on change option event! Deleting this file will reset vfu toggles to default values. vfu.options is not portable between vfu
versions!
Location of vfu.conf
vfu.conf can be placed as any of:
$HOME/.vfu/vfu.conf
$HOME/$RC_PREFIX/vfu/vfu.conf (if $RC_PREFIX is exported)
/etc/vfu.conf
/usr/local/etc/vfu.conf
/usr/local/vfu.conf
Other files location
All other files including vfu.options are placed in:
$HOME/.vfu/
$HOME/$RC_PREFIX/vfu/
What is "$RC_PREFIX" and why to use it? Some more information for this can be found in the CONFIG file which is supplied with vfu package.
VFU.CONF
This is a sample copy of vfu.conf with appropriate comments:
DISTRIBUTION
It is supposed that only source packages will be distributed. However sometimes binary packages will be released, but not often. VFU
packages are named in this way:
vfu-X.xx.src.tgz
source package for version X.xx
vfu-X.xx.bin.platform.tgz
binary package for version X.xx for `platform' platform
examples:
vfu-4.00.src.tgz
vfu-4.00.bin.linux.glibc.tgz
vfu-4.00.bin.linux.libc5.tgz
vfu-4.00.bin.dos.tgz
All packages are TAR+GZIP .tgz, bz2 and zip are available on request.
NOTE: Always check HISTORY document -- it often contains some usefull notes!
FILES
$HOME/$RC_PREFIX/vfu/vfu.conf
configuration, explained above
$HOME/$RC_PREFIX/vfu/vfu.options
options, explained above
$HOME/$RC_PREFIX/vfu/vfu.history
contains history lines
$HOME/$RC_PREFIX/vfu/vfu.tree
contains directory tree
If you don't set $RC_PREFIX configuration files are:
$HOME/.vfu/vfu.conf
$HOME/.vfu/vfu.options
$HOME/.vfu/vfu.history
$HOME/.vfu/vfu.tree
TODO
see the TODO file
BUGS
unknown
AUTHOR
Vladi Belperchinov-Shabanski "Cade"
<cade@biscom.net> <cade@datamax.bg>
http://cade.datamax.bg/
http://cade.datamax.bg/vfu/
3rd Berkeley Distribution Version 4.00 VFU(1)