07-11-2005
customised filename
Hi,
I am taking an output and redirecting it to a file name
and this is a hourly or daily process , in this case, i want my file output as
some logoutput_date_time.txt
how can i form the file name like this
for eg
i am running this command now, so
tail -f /data/logs/xxx/yyy.txt >>logoutput_11072005_1125.txt
what shd i do to get the file name like this,
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am going to build some commands/functions for common tasks that I have to perform (things like searching a filesystem for a certain string in a file).
I intend to write these as unix scripts. Then adding the location of these to my path.
How can I ensure that the variables specified when... (7 Replies)
Discussion started by: peter.herlihy
7 Replies
2. UNIX for Dummies Questions & Answers
i'd like to have an alias (or something similar) where i can type a command like "archive" and a filename and have it tar and gzip the file, so...
$ archive filename
results in filename.tar.gz...do i have to write a script to do this? (4 Replies)
Discussion started by: bcamp1973
4 Replies
3. Red Hat
I have created a custom firewall script in RHEL 4 .Let me explain the steps which i followed .
etho -Internal lan
eth1 -External lan
During the installtion of RHEL 4 ,i enabled Firewall and after booting to x windows i selected enable firewall and defined the defined and customised ports... (0 Replies)
Discussion started by: sud.tech
0 Replies
4. Shell Programming and Scripting
I am trying to write a script that prompts users for date and time, then process the gzip file into awk. During the ksh part of the script another file is created and needs to be processed with a different set of pattern matches then I need to combine the two in the end. I'm stuck at the part... (6 Replies)
Discussion started by: timj123
6 Replies
5. Shell Programming and Scripting
i have several thousand files and in subdirs that are named
file.46634.txt
budget.75346.pdf
etc
i want to remove the number but retain the extension.
it is always a 5 digit.
thanks. (6 Replies)
Discussion started by: jason7
6 Replies
6. Shell Programming and Scripting
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
Discussion started by: natalie23
3 Replies
7. Red Hat
I want some customised output of following command:
$ls -a|sort
gives output as filenames line by line. But I want the output as filenames aeperated by tab? How can I get this?
Thanks in advance. (7 Replies)
Discussion started by: ashok.g
7 Replies
8. Shell Programming and Scripting
Hi,
Below is the script that takes some value from the properties file and then move the file from files folder to output folder based upon the modification time of files(configurable N days value),now at the end I want to show a customised message that if no files are moved then it shows the... (1 Reply)
Discussion started by: rahul125
1 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Thanks in Advance
I am working on a shell script. I need some assistance.
My Requirement:
1) There are some set of files in a directory like given below
OTP_UFSC_20120530000000_acc.csv
OTP_UFSC_20120530000000_faf.csv
OTP_UFSC_20120530000000_prom.csv... (0 Replies)
Discussion started by: aealexanderraj
0 Replies
10. Programming
Hi All,
Thanks in Advance
I am working on a shell script. I need some assistance.
My code:
if
then
set "subscriber" "promplan" "mapping" "dedicatedaccount" "faflistSub" "faflistAcc" "accumulator"\
"pam_account";
for i in 1 2 3 4 5 6 7 8;... (0 Replies)
Discussion started by: aealexanderraj
0 Replies
LEARN ABOUT CENTOS
snapper-configs
SNAPPER-CONFIGS(5) Filesystem Snapshot Management SNAPPER-CONFIGS(5)
NAME
snapper-configs - Configuration files for snapper configs
DESCRIPTION
Each file /etc/snapper/configs/* describes a snapper config.
VARIABLES
The following is a list of variables that can be present in the configuration file. Boolean values must be "yes" or "no".
SUBVOLUME=path
Path of the subvolume or mount point.
There is no default value. The value must always be specified.
FSTYPE=value
Filesystem type for the subvolume.
Default value is "btrfs" but it's recommended to always specify the filesystem type.
ALLOW_USERS=users
List of users allowed to operate with the config. The user-names must be separated by spaces. Spaces in usernames can be escaped with a
"".
Default value is "" but "root" is always implicitly included.
ALLOW_GROUPS=groups
List of groups allowed to operate with the config. The group-names must be separated by spaces. Spaces in group-names can be escaped
with a "".
Default value is "".
BACKGROUND_COMPARISON=boolean
Defines whether pre and post snapshots should be compared in the background after creation.
Default value is "no".
NUMBER_CLEANUP=boolean
Defines whether the number cleanup algorithm should be run for the config.
Default value is "no".
NUMBER_MIN_AGE=seconds
Minimal age for snapshots to be deleted by the number cleanup algorithm.
Default value is "1800".
NUMBER_LIMIT=number
Defines how many snapshots the number cleanup algorithm should keep. The youngest snapshots will be kept.
Default value is "50".
TIMELINE_CREATE=boolean
Defines whether hourly snapshots should be created.
Together with the timeline cleanup algorithm this will create a collection of snapshots with more snapshots is the near past and less
snapshots in the far past.
Default value is "no".
TIMELINE_CLEANUP=boolean
Defines whether the timeline cleanup algorithm should be run for the config.
Default value is "no".
TIMELINE_MIN_AGE=seconds
Minimal age for snapshots to be deleted by the timeline cleanup algorithm.
Default value is "1800".
TIMELINE_LIMIT_HOURLY=number
Defines how many hourly snapshots the timeline cleanup algorithm should keep. An hourly snapshots is the first snapshot in an hour. The
youngest hourly snapshots will be kept.
Default value is "10".
TIMELINE_LIMIT_DAILY=number
Defines how many daily snapshots the timeline cleanup algorithm should keep. A daily snapshots is the first snapshot in a day. The
youngest daily snapshots will be kept.
Default value is "10".
TIMELINE_LIMIT_MONTHLY=number
Defines how many daily snapshots the timeline cleanup algorithm should keep. A daily snapshots is the first snapshot in a day. The
youngest daily snapshots will be kept.
Default value is "10".
TIMELINE_LIMIT_YEARLY=number
Defines how many daily snapshots the timeline cleanup algorithm should keep. A daily snapshots is the first snapshot in a day. The
youngest daily snapshots will be kept.
Default value is "10".
EMPTY_PRE_POST_CLEANUP=boolean
Defines whether the empty-pre-post cleanup algorithm should be run for the config.
Default value is "no".
EMPTY_PRE_POST_MIN_AGE=seconds
Minimal age for snapshots to be deleted by the empty-pre-post cleanup algorithm.
Default value is "1800".
HOMEPAGE
http://snapper.io/
AUTHORS
Arvin Schnell <aschnell@suse.de>
SEE ALSO
snapper(8), snapperd(8)
0.1.7 2013-07-09 SNAPPER-CONFIGS(5)