Hi Everyone,
I want to delete some files in a path based on the time stamp of the file that is i want to delete the file once in a month.
Can any one help me on this?
Thanks in advance (2 Replies)
All,
I am new to unix and i have the following requirement.
I have file(s) landing into input directory with timestamp, first i want to copy all these files into seperate directory then i want to rename these files without timestamp and also remove header,trailer from that file..
Could... (35 Replies)
Hi All,
I know the timestamp of a file. Now i would like to list all the files in the with the same time stamp in the same file.
Any help would be appreciated.
Thanks.
sunny (1 Reply)
Hi all,
I've already tired to try to solved this problem. Also search in Internet didn't find anything solution
I have a directory like this :
# pwd
/opt/projects/juventini
# ls -al | more
total 3627460
drwxr-xr-x 2 app apps 12472320 Sep 24 14:59 .
drwxr-xr-x 11 app apps 4096 Jun... (8 Replies)
Hi all,
I'm after some help with this small issue which i'm struggling to work out a fix for.
I have a file that contains records that all have a time stamp for each individual record, i need to search the file for a specific time stamp and then search back 10 seconds to see if the number... (2 Replies)
I have created this script
#!/bin/sh
FILES=/data/log/access_*.log
for f in $FILES
do
echo "Processing $f file"
cat $f | awk '{print $1}' | sort | uniq -c | sort -n | tail
done
It produces this output
Processing /data/log/access_abc.log file
114 1.1.1.1
167 2.2.2.2
... (38 Replies)
find /app/data -name "Availability" -
Below is the output now i need to filter based on latest modified timestamp.
I know 3 is the latest modified time stamp but i tried different options but only filtering docs and not on headnote..Can any one tell me how to do that..
... (2 Replies)
Hi Team,
I'm new to unix and i have a requirement to copy or move files from one directory to another based on current date mentioned in the .zip file name. Note that i need to copy only the recent zip file. please help me with the code
i tried the code as:
#! /usr/bin/sh
find... (3 Replies)
Discussion started by: midhun3108
3 Replies
LEARN ABOUT DEBIAN
nyshell
NYSHELL(1) General Commands Manual NYSHELL(1)NAME
nyshell - tool to generate shell scripts to build nypatchy output
SYNOPSIS
nyshell logfile options cradle [ print ] [ .go ]
DESCRIPTION
nyshell is a tool in the Nypatchy suite of programs for working with Patchy Master Files (PAM files); see nypatchy(1). Specifically, given
the log file of a nypatchy run, it can create a shell script to compile all the source code files output by nypatchy. This program is sim-
ilar to fcasplit except that it takes the log file as input instead of a source file, and it remembers which source code files have already
been compiled in previous runs.
USAGE
logfile is the name of the log file coming from nypatchy, with a default extension of ".log". A cradle file cradle may be given to add
additional setup options such as desired compilers or compiler flags to use. (See the reference manual for more details.) print is the
file to which informational output should be written (the default is standard output if omitted), and options is a sequence of single-char-
acter flags. This program generates a shell script file named name.shfca (with name being the part of logfile sans extension) that can be
run to build all object files. The file name.xqtlog "remembers" the current state.
The command should be ended with ".go" unless one wants to enter the Nypatchy interactive shell.
OPTIONS
Note that options should be given as a single string of characters with no space separation and no use of the - character (except that it
can be used in place of the options field if no options are desired). Alphabetic options are not case-sensitive.
A Force recompilation of all routines.
B Bypass tests based on the .xqtlog file.
E Bypass tests based on the .xqtlog file if it is empty.
H Print help information only.
Q "quick" - Do not print the setup.
S Print the setup only (only together with H).
U "up to date" - Check that all .o files are ready to go into a library.
V "verbose" - Print the complete setup.
SEE ALSO fcasplit(1), nycheck(1), nydiff(1), nyindex(1), nylist(1), nypatchy(1), nymerge(1), nysynopt(1), nytidy(1), yexpand(1)
The reference manual for the Nypatchy suite of programs is available in compressed PostScript format at the following URL:
http://wwwasdoc.web.cern.ch/wwwasdoc/psdir/p5refman.ps.gz
Running the command "nyshell help .no" also gives some brief help on usage. Running the command "nyshell - hs .no" prints the default set-
up (compiler names and options) to be used in the generated shell scripts.
AUTHOR
This manual page was written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux system (but may be used by others). It is
licensed under the GNU General Public License, version 2 or later (at your choice).
COPYRIGHT
Copyright (C) Kevin B. McCarty, 2008.
Mar 12, 2008 NYSHELL(1)