09-07-2005
Not using FreeBSD ,
but if the following find command can display the files you want to move .
find ./dir -type f -iname "*.t[argz]*[bz2]" -print
then you might try this
#find ./dir -type f -iname "*.t[argz]*[bz2]" -print > /tmp/file.list
#tar cvf - `cat /tmp/file.list` | ( cd /target_dir;tar xvf - )
now you just have to remove the old files .
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings,
I know i can use the mv command to move and rename one file. How can I do this with multiple files?
example
pic01.bmp to pic0001.bmp
how can i perform this function on an entire directory of sequential files and keep them in sequence?
Hints, suggestions are most welcome:)
... (1 Reply)
Discussion started by: rocinante
1 Replies
2. Shell Programming and Scripting
Hi All,
Being new to scripting I am facing a new situation. We have an application that generates a file lets say dumpfile for each user under the users home directory when they execute the application. This is quite a huge file and imagine having that for over 40 users on a daily basis. The... (1 Reply)
Discussion started by: daemongk
1 Replies
3. Shell Programming and Scripting
Hi,
I have a requirement where
I need to move Bunch of folders containing multiple files to another archive location.
i want to use mv command .I am thinking when we use mv command to move directory does it create directory 1st and then move all the files ?
e.g
source... (4 Replies)
Discussion started by: rkmbcbs
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have d1,d2,d3 directories
/
/home/abc/d1
/home/abc/d2
/home/abc/d3
d1,d2 and d3 also have subdirctories.
d1-->d11-->d12
d2-->d22-->d23
d3-->d33-->d34
All these directories have files like date_filename.txt
so I want to find the files recusively for a particular date from... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies
5. UNIX for Dummies Questions & Answers
Hello,
After searching, I didn't find any answer to execute my task. Her what I want to achieve on my MAC :
Create a ZIP file (not tar.gz or other) from a file
I want the ZIP created to have the name of the original file
I want to do this on multiple files (314 exactly)
So at the end the... (3 Replies)
Discussion started by: anou
3 Replies
6. UNIX for Advanced & Expert Users
I want to search for a particular file name patterns and move them to a specific folder, is it possible to do it with awk or sed? (1 Reply)
Discussion started by: rudoraj
1 Replies
7. Shell Programming and Scripting
HI I have a list of files that are incorrectely names and I need to move them to new name .. I tried few things that has not worked so far can you help ?
I need to rename all thes eifle ( tere are over 100 )
xldn0357bap.orig.new
xldn0389bap.orig.new
xldn0439bap.orig.new... (12 Replies)
Discussion started by: mnassiri
12 Replies
8. Shell Programming and Scripting
Hi.
I am trying to automate the movement and renaming of a number of files in a directory. I am using the 'mv' command as I do not have access to 'rename'. I have the following scripted FILES=$(ls /transfer/move/sys/mail/20130123/)
if ; then
for i in ${FILES} ; do
mv... (4 Replies)
Discussion started by: jimbojames
4 Replies
9. UNIX for Dummies Questions & Answers
Hello all,
I'm writing a script that will allow me to move files into a sub-directory for archiving. These files, specifically, are output files that result at the end of a process. The issue I'm having is that while moving files from one place to another is relatively an easy task, grabbing... (2 Replies)
Discussion started by: galileo1
2 Replies
10. Shell Programming and Scripting
Hi there,
I am using AIX and trying to search and replace a string with another string in multiple files in different directories.
I wanted to search replace in steps so I don't change all of the instance anywhere in the server at once, minimizing impact.
STEP 1:
--------
I first searched... (5 Replies)
Discussion started by: zaino22
5 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)