In C Shell programming I haven't successfully been able to append the date in the format mmddyyyy to a filename. I've tried the following:
I can print out the date in the correct format: date +%x | sed ‘s/\///g
I can create a variable with the filename: set newfile=changedfiles
I can... (3 Replies)
I need to extract the date part from the file name (20080221 in this ex) and compare it with the current date and delete it, if it is a past date.
$file = exp_ABCD4_T-2584780_upto_20080221.dmp.Z
really appreciate any help.
thanks
mkneni (4 Replies)
Hello,
I need to create a shell script that appends a filename to create a name with the date and time appended that is guaranteed to not exist. That is, the script insures you will not overwrite a file with the same name. I am lost with this one. I know I need to use date but after that I am... (3 Replies)
Hi,
There are similar kind of posts, but none seems like working for me. Please correct me if I'm wrong.
I need append/rename file abc.txt with file processed date and time like abc_systemdatetimestamp.txt
and move it to different folder.
for example I have
/source/data/abc.txt
... (1 Reply)
I have multiple txt files which begin with the word "orders" in folder C:\source. I need to move the files to folder C:\dest and rename them to "process_<date>_<count>"
So for example , if there are 3 files ordersa.txt , ordersb.txt and ordersc.txt in C:\source , after running the script I want... (1 Reply)
I have multiple txt files which begin with the word "orders" in folder C:\source. I need to move the files to folder C:\dest and rename them to "process_<date>_<count>"
So for example , if there are 3 files ordersa.txt , ordersb.txt and ordersc.txt in C:\source , after running the script I want... (7 Replies)
Hello,
I'd like to write a monthly archive script that archives some logs. But I'd like to do it based on yesterday's date. In other words, I'd like to schedule the script to run on the 1st day of each month, but have the archive filename include the previous month instead.
Here's what I... (5 Replies)
Suppose i have a list of files in a directory as mentioned below
1. Shankar_04152019_ny.txt
2. Gopi_shan_03122019_mi.txt
3. Siva_mourya_02242019_nd.txt
..
.
.
.
.
1000 . Jiva_surya_02282019_nd.txt
query : At one shot i want to modify the above all filenames present in one path with... (4 Replies)
Discussion started by: Shankar455
4 Replies
LEARN ABOUT DEBIAN
vfu
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)