06-24-2011
Please help I want script to check filename, size and date in specify path.
Please help, I want script to check filename, size and date in specify path.
I want output as:
DATE: YYYYMMDD HH:MM
------------------------------------------------
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
and when I repeat this script, it should check only new file that new in log (skip already log in file)
Please I need help.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
UNIX Shell Script
I'm in /home/suneel dirctory
in that directory need to check for a path for example com/src/resources
If Path exists need to copy the files from one directory
If path not exist need to create the folders and copy the files
UNIX shell script help required (3 Replies)
Discussion started by: suneelc
3 Replies
2. Shell Programming and Scripting
hi unix guru's..................:confused:
question is posted in the #3 permalink shown below. (3 Replies)
Discussion started by: yahoo!
3 Replies
3. Shell Programming and Scripting
the script on excution should take a directory path from useran a numric input and it should check indicate whether its write or not?
if the cmmd sh<script-name>,dir/path.<500>" is greater than 500 in size should be copied to dir ,temp in pwd and display the mesage'files of 2000 bytes hav been... (4 Replies)
Discussion started by: arukr
4 Replies
4. Shell Programming and Scripting
Hi guys, i am new to perl. I started reading the perl documents and try to come up with some logic.
I am trying to create a script that would go into a location, search for todays files, then searches for all .txt files from today.
If todays not found, its an error
If file size is less... (26 Replies)
Discussion started by: DallasT
26 Replies
5. Shell Programming and Scripting
The situation is a data center with around 800 servers.
Each server has installed one of these unix-like OS: rhel, sunos, aix, hp-ux.
And we have to make scripts general enough to being able to be executed over all these servers.
Furthermore, sometimes the scripts will be executed as a... (1 Reply)
Discussion started by: asanchez
1 Replies
6. Windows & DOS: Issues & Discussions
Well since Windows always laments over some of my files having a too long "path+filename" and it gets in the way of copying complete directory structures I would love to have a DOS Script that helps me with finding those.
I already tried DCSoft Long Filename Finder but that is neither DOS based... (3 Replies)
Discussion started by: pasc
3 Replies
7. Shell Programming and Scripting
I am looking for a way to find a date in the file without using find. for example something like this:
files=`ls |grep txt`
YEST=`TZ="GMT+24" date +'%m-%d-%Y'|sed 's/^0//g' |sed 's/$/.txt/g'`
YES1=`TZ="GMT+48" date +'%m-%d-%Y'|sed 's/^0//g' |sed 's/$/.txt/g'`
if ]; then echo yes;else echo... (4 Replies)
Discussion started by: newbie2010
4 Replies
8. Shell Programming and Scripting
Example:
I have server name A with an IP : 125.252.235.455
I have an username /password to login into this server under SSH connection
In this server i have a path /apps/user/filename(Big.txt)
Everyday we used to get the filename as Big.txt.
I want a shell script to monitor this path... (4 Replies)
Discussion started by: ChandruBala73
4 Replies
9. Shell Programming and Scripting
I have file listed like below
-rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz
-rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz
-rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz
-rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz
-rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz
I... (5 Replies)
Discussion started by: krish2014
5 Replies
10. UNIX for Beginners Questions & Answers
Hello.
Source file are in : /a/b/c/d/e/f/g/some_file
Destination is : /d/e where sub-directories "f" and "g" may missing or not.
After copying I want /a/b/c/d/e/f/g/file1 in /d/e/f/g/file1
On source /a is top-level directory
On destination /d is top-level directory
I would like... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT POSIX
nodesave
NODESAVE(8) Linux System Managers Manual NODESAVE(8)
NAME
nodesave - Saves NET/ROM routing information
SYNOPSIS
nodesave [-p path] [-v] [filename]
DESCRIPTION
Nodesave saves the contents of the /proc filesystem entries for the NET/ROM routing tables. The output of the program is in the form of a
Bourne shell script that calls nrparms(8) to recreate the NET/ROM routing information. If no filename is given on the command line, the
program writes the script to stdout.
Typically nodesave would be used when taking a system off-air so that the NET/ROM routing may be quickly restored when the system is
brought back on-line.
OPTIONS
-p path Set the path to the nrparms binary. This only affects the output of the program. Default is /usr/sbin.
-v Display the version.
FILES
/proc/net/nr_neigh
/proc/net/nr_nodes
SEE ALSO
netrom(4), netromd(8), nrparms(8).
AUTHOR
Tomi Manninen OH2BNS <oh2bns@sral.fi>
Linux 4 July 1999 NODESAVE(8)