For you idea - it's better to use find:
To find all files modified between 24 and 48 hours ago in DIRECTORY and its suddirectories:
I don't appear to get an output when I run this?
Quote:
Originally Posted by yazu
To find all the files that were modified yesterday from the current working directory and all of its subdirectories:
Just wondering if I'm able to get a datestamp and filesize in the output?
Either way this is very useful, adding > filename to the end allowed me to save it in a file.
Thanks very much : )
P.S. i tried adding -al and -l on the end of find . -daystart -ctime 0 -type f but got an error saying "invalid predicate"
hey all,
i am a shell scripting n00b so bear with me. i got a server that every night uploads one file to a remote server. the file is prodserver_date_time.
i would like to make a script, run by root on a daily cron job. i want it to determine if the file was received or not. no md5... (2 Replies)
hi
i want check for PVCS header in file if its present then check if its in proper format or not i want to do this is in perl on windows.
this is what i am doing :
1 . open file
2 . check for "PVCS information" if found then store the line no to $line var.
3 . check for "sccs" header ... (0 Replies)
I have a process that I am trying to provide a solution for and have hit a brick wall and would like some pointers in the right direction.
Basically on a daily basis a report is automatically generated in a CSV format (FIRST.CSV) which includes codes and amounts in the following format:
... (6 Replies)
Need to make a very fast file existence checker. Passing in 20-50K num of files
In the code below ${file} is a file with a listing of +20,000 files. test_speed is the script. I am commenting out the results of <time test_speed try>.
The normal "test -f" is much much too slow when a system... (2 Replies)
Hi all,
I will like to know what are all sanitary checks which should be done on daily basis on all business critical AIX boxes without fail. (7 Replies)
Hi,
I would like to execute a daily grep like:
grep 2010-09-06 statistics.log|grep API > /var/tmp/stat20100906_sp.txt
On date e.g. 2010-09-07 run a grep on yesterday's date, from the result grep the word "API" put all in /var/tmp
Would like to have a script configured in the crontab, running... (4 Replies)
Hey Guys,
I'm seeking some assistance in getting this script to run as a cron job for the user oracle.. the script is basically to perform 2 ADRCI checks... see the script below... i'm getting the following error: /export/home/oracle/Daily_Checks/ADRCI_Daily_Checks.sh: syntax error at line 16:... (7 Replies)
I need to create a script which needs to transfer the "<filename>+yyyymmdd".dat file from a unix machine to a linux machine.. daily. we can use an active batch to schedule the script. however, the script needs to detect if the new file is present, if present, then transfer.
any help ?? (1 Reply)
Hi All!
I am trying to write a little script that should go to a windows server get one file and put on a unix server, but I am not sure if it is the right way please help:
#! /usr/bin/sh
HOST=10.100.48.41
USER=ftp_hm
PASSWD=P@$$w0rd
ftp -n $HOST
quote user $USER
quote pass $PASSWD... (7 Replies)
Hi!
Please I need help on the a script that would pick one file in a directory, change its name, them change its permissions, them move to a different directory, but has to be done on a daily basis, and the file that is being moved to its final destination has to have the following format:... (7 Replies)
Discussion started by: fretagi
7 Replies
LEARN ABOUT FREEBSD
brand.4th
BRAND.4TH(8) BSD System Manager's Manual BRAND.4TH(8)NAME
brand.4th -- FreeBSD ASCII art boot module
DESCRIPTION
The file that goes by the name of brand.4th is a set of commands designed to draw the ASCII art BSD brand above the boot loader menu. The
commands of brand.4th by themselves are not enough for most uses. Please refer to the examples below for the most common situations, and to
loader(8) for additional commands.
Before using any of the commands provided in brand.4th, it must be included through the command:
include brand.4th
This line is present in the default /boot/menu.rc file, so it is not needed (and should not be re-issued) in a normal setup.
The commands provided by it are:
draw-brand Draws the BSD brand.
The brand that is drawn is configured by setting the loader_brand variable in loader.conf(5) to one of ``fbsd''
(the default) or ``none''.
The position of the logo can be configured by setting the loader_brand_x and loader_brand_y variables in
loader.conf(5). The default values are 2 (x) and 1 (y).
The environment variables that effect its behavior are:
loader_brand
Selects the desired brand in the beastie boot menu. Possible values are: ``fbsd'' (default) or ``none''.
loader_brand_x
Sets the desired column position of the brand. Default is 2.
loader_brand_y
Sets the desired row position of the brand. Default is 1.
FILES
/boot/loader The loader(8).
/boot/brand.4th brand.4th itself.
/boot/loader.rc loader(8) bootstrapping script.
EXAMPLES
Set FreeBSD brand in loader.conf(5):
loader_brand="fbsd"
SEE ALSO loader.conf(5), loader(8)HISTORY
The brand.4th set of commands first appeared in FreeBSD 9.0.
AUTHORS
The brand.4th set of commands was written by Devin Teske <dteske@FreeBSD.org>.
BSD May 18, 2011 BSD