Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same.
Thanks in advance.
Regards
Jatin Jain (10 Replies)
Hello,
Can anyone pls. provide me with the command for deleting files older then 15 days with a restriction to keep at least 5 files in a directory even if they are older then 15 days.
Any help will be highly appreciated.
Thanks,
Pulkit (4 Replies)
Hi,
I am using the command find /apps/qualdb/gpcn/scripts/cab_outbound/archive -name 'z*' -mtime +28 -exec rm {} \;
in unix command prompt
for deleting the files in my unix system under the specfied folder. It was succesfull.
But when i running this command inside a shell script name... (2 Replies)
Hello Friends,
Im trying to delete empty files in subdirectories with a command. I can find them checking only one directory in each step and then show them with my command like below moreover i could not add removing part:
ls -l */* | awk '{if ($5==0) printf "%3s %2d %s... (5 Replies)
i want to remove *.req files from directory
/opt/FFCL8001/oracle/inst/apps/FFCL8001_lhrho/logs/appl/conc/log
i executed command find . -name '*.req' -mtime +2 -exec rm {} \;
but it is running since hours and free space in /opt is same as old 7.4 GB .
why it is not removing files ? (5 Replies)
Hello out there,
Our system has a pdf generator that creates pdf files. We dont need them pas 120 days.
So I have this command in my crontab. I currently set it to "0" for testing. But normally have it set to -mtime 120 to remove files out of the folders from PDF out to several other potential... (7 Replies)
Hi,
I have a script similar to this
#!/bin/ksh
cd /orcl/bir/eod_badfiles
find ./ -type f -name "*.csv" -mtime +6 -exec rm -f {} \;
find ./ -type f -name "*.bad" -mtime +6 -exec rm -f {} \;
cd /orcl/bir
find ./ -type f -name "*.log" -mtime +6 -exec rm -f {} \;
This was working fine in one... (5 Replies)
I need to find a word '% Retail by State' in the folder /usr/sas/reports/RetailSalesTaxallocation.
When I tried like below,
-bash-4.1$ cd /usr/sas/reports/RetailSalesTaxallocation
-bash-4.1$ find ./ -name % Retail by State
find: paths must precede expression: Retail
Usage: find ... (10 Replies)
Discussion started by: Ram Kumar_BE
10 Replies
LEARN ABOUT ULTRIX
bdiff
bdiff(1) General Commands Manual bdiff(1)Name
bdiff - big file differential comparator
Syntax
bdiff file1 file2 [n] [-s]
Description
The command is used to find lines that must be changed in two files to bring them into agreement. Its purpose is to allow processing of
files that are too large for
The command ignores lines common to the beginning of both files, splits the remainder of each file into n-line segments, and invokes upon
corresponding segments. The value of n is 3500 by default. If the optional third argument is given and if it is numeric, it is used as
the value for n. This is useful in those cases in which 3500-line segments are too large for causing it to fail.
The output of the command is the same as the output of the command: line numbers are adjusted to account for the segmenting of the files to
make it look as if the files had been processed whole. Note that because of the segmenting of the files, does not necessarily find the
smallest sufficient set of file differences.
If either file1 or file2 is -, the standard input is read. The optional -s (silent) argument specifies that no diagnostics are to be
printed by However, this does not suppress possible exclamations by If both optional arguments are specified, they must appear in the order
indicated above.
Options-s Suppresses normal diagnostic messages.
Diagnostics
Use for explanations.
Files
/tmp/bd?????
See Alsodiff(1)bdiff(1)