hi,
I'm working on a project where I get mails from different customers, what I need to do is I need to check if it is genuine mail and if there is any attachment I need to validate them and extract the message and save in the local directory as a text file say and then I need to direct it to... (4 Replies)
Hi Gurus,
I am new to unix and need your help to make a shell script. I have a requirement, would appreciate if you could please help me on it:
Requirement:
-------------
I will pass 2 parameters in shell script 1). Directory name say errors 2). file extension say .log
First of all this... (4 Replies)
this is what i have to find the files modified within the past 24 hours
find . -mtime -1 -type f -print0 | xargs -0 tar rvf "$archive.tar"
however i need to save/name this archive as the current date (MM-DD,YYYY.tar.gz)
how do i doo this (1 Reply)
Hi All,
Can you please help me to get only the files which has the modified date as yesterday and before?
Thanks in advance!
Regards,
Velava.S (4 Replies)
Hi ,
I know that find / -type f -mtime -1 will show all modified files that changed 24hrs preceeding the time i run the command. This will include list of files that changed today.
How do i find only files that changed yesterday staring from 00:00hrs to 23:59?
Thanks
HG (2 Replies)
- Concatenate files and delete source files. Also have to add a comment.
- I need to concatenate 3 files which have the same characters in the beginning and have to remove those files and add a comment and the end.
Example:
cat REJ_FILE_ABC.txt REJ_FILE_XYZ.txt REJ_FILE_PQR.txt >... (0 Replies)
Hi
I've the following requirement, where i need to zip the yesterday files every day .
Yesterday's Files
touch AB_XYZA_20130930183017.log
touch AB_DY_XYZA_20130930183017.log
touch AB_GZU_20130930183017.log
touch AB_XYZA_20130930180023.log
touch AB_DY_XYZA_20130930180023.log
touch... (1 Reply)
wget -x -i link.txt
The above downloads and create unique entries for the 97 links in the text file. However, each new file is saved as CM080 with a FILE extention. Is there a way to convert each file in that directory to a .txt? The 97 files are in... (12 Replies)
I am having a little trouble with some things using the code below:
1. printf "Enter variant: "; read variant The user enters the variant and that value is used in the python script. However, I am not sure how to save that value inputed as a text file in a specific directory... (8 Replies)
I am trying to select a file in bash and save it to a directory. The below does run but no selected file is saved. Thank you :).
bash
# select file
printf "please select a file to analyze with entered gene or genes \n"
select file in $(cd... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT OSF1
savemeta
savemeta(8) System Manager's Manual savemeta(8)NAME
savemeta - Takes a snapshot of an AdvFS domain's metadata
SYNOPSIS
/sbin/advfs/savemeta [-LSTt] [-f fileset] domain savedir
OPTIONS
Saves the structure information from the frag file in each named fileset to the savedir. If this option is not specified, the default is to
write no frag file information to the savedir. Do not save the domain's log file to the savedir. If this option is not specified, the
default is to write the log file to the savedir. Do not save each volume's storage bitmap (SBM) to the savedir. If this option is not
specified, the default is to write each volume's SBM to the savedir. Do not save the domain's root tag file to the savedir. If this
option is not specified, the default is to write the root tag file to the savedir. Do not save the fileset tag files to the savedir. If
this option is not specified, the default is to write the fileset tag files to the savedir.
OPERANDS
The name of the AdvFS file domain from which you want to obtain the metadata. The name of a directory into which the saved metadata is to
be written.
DESCRIPTION
This script saves a snapshot of the specified domain metadata into a directory, savedir, that has the following structure:
savedir/volume_directory/RBMT_file
/BMT_file
/SBM_file
/log_file
/tag_file
/fileset_directory/frag_file
/tag_file
By default, the savemeta command saves all the bitfile metadata (BMT), all the SBM, the log and root tag files, and the fileset tag files.
If you specify the -f option, the command saves the frag file information for each fileset.
RESTRICTIONS
You must be the root user to use this command.
EXIT STATUS
This command returns a 0 (zero) on success. Otherwise, it returns a 1 and displays an error diagnostic.
FILES
The command path.
SEE ALSO
Commands: nvbmtpg(8), nvfragpg(8), nvlogpg(8), nvtagpg(8), vsbmpg(8)savemeta(8)