04-16-2015
Try it without the -delete and see if it prints the names. If it prints the right names, you're on the right track.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
HP UX 11i
Ok my server is about to run out of space, and i would like to know if there is something that i should be doing on a regular basis to maintain the machine like logs that i should clear or dmp file that i should delete...
Thanks in Advance (2 Replies)
Discussion started by: bbutler3295
2 Replies
2. Shell Programming and Scripting
hi
i am having four files in a directory.like
1)sampleRej
2)exampleRej
3)samplemain
4)examplemain
my requirement is i have to search for the rejected files (sampleRej,exampleRej) in a directory.if these files in that directory then i have to delete the main files... (3 Replies)
Discussion started by: srivsn
3 Replies
3. Shell Programming and Scripting
I want to write a code that will look for a particular directory which is full or more than 95% used, and will search older file and delete it. My code looks like this:
df -k|while read f1 f2 f3 f4 f5 f6
do
if expr '$f5' -ge '95%' || continue
then
echo $f5
else
echo "there is no... (2 Replies)
Discussion started by: xramm
2 Replies
4. Shell Programming and Scripting
There are some files in a directory like a.tx~ , b.txt~,c.txt~.
I want to delete all these files inside that directory and sub directory.
How can i do this?
#!/bin/bash
cd thatdirectory
......
rm -rf *~
...... (7 Replies)
Discussion started by: cola
7 Replies
5. UNIX for Dummies Questions & Answers
Hello UNIX gurus,
I noticed this file or whatever in one of our directories, and somehow I am not able to proceed with my work, without deleting this one.
.insert--- 1 siebload intrface 0 Feb 22 01:25 Testfile
I am confused, as it doesnt appear to be a file, and on doing any... (2 Replies)
Discussion started by: ppathak1234
2 Replies
6. Shell Programming and Scripting
Hi, what function do we use to delete only particular file that we want in directory shell script
for example I want only to delete test.txt in directory how to do it ? in sh
Thank (1 Reply)
Discussion started by: guidely
1 Replies
7. Shell Programming and Scripting
Hello,
I have a directory with many files whose creation time is distributed all over the day.
I need ANY 20 files per hour. So, I need
20 files for hour 00
20 files for hour 01
...
20 files for hour 23
What I have done so far is not great. Here is the code:
# get the Month
a=`echo... (8 Replies)
Discussion started by: shekhar2010us
8 Replies
8. UNIX for Dummies Questions & Answers
I have created few text file during run time by redirecting the txt file
echo USER_LIST_"$(date '+%d%h%Y')".csv > report_location.txt
report_location.txt is creating in the same location where I run script
home/script
When I try to remove the txt file at the end of the... (3 Replies)
Discussion started by: stew
3 Replies
9. Shell Programming and Scripting
I have a log file with contents like below.
Repository: https://someserver:9443/
Workspace: (1000) "test_scripts_ws"
Component: (1001) "some_Automated_Scripts"
Change sets:
(1002) ---$ john "test memory" 17-Sep-2014 02:24 PM
Changes:
--a--... (9 Replies)
Discussion started by: gaurav99
9 Replies
10. Shell Programming and Scripting
Hi All,
My directory structure is like
Directory1
SubDirectory1
SubDirectory2
SubDirectory3
I have main directories and subdirectories underneath. I want to write a shell script where I will be passing file name as a parameter, Now I want to find all the files in Directory1... (19 Replies)
Discussion started by: John William
19 Replies
LEARN ABOUT REDHAT
cnfsstat
CNFSSTAT(8) System Manager's Manual CNFSSTAT(8)
NAME
cnfsstat - show usage of cycbuffs
SYNOPSIS
cnfsstat [ -a ] [ -c CLASS ] [ -h ] [ -l [ seconds ] ] [ -m BUFFER ] [ -P ] [ -p ] [ -s ]
DESCRIPTION
Cnfsstat reads <pathetc in inn.conf>/cycbuff.conf and <pathetc in inn.conf>/storage.conf to read which cycbuff is available and read speci-
fied cycbuffs and shows the usage of them.
Cnfsstat can be invoked from rc.news(8), if <docnfsstat in inn.conf> is ``true'', and the result is written to syslog(3).
OPTIONS
-a Cnfsstat prints also the age of the oldest article in the cycbuff.
-c CLASS
Cnfsstat prints for the specified class.
-h Cnfsstat prints usage information.
-l [ seconds ]
Cnfsstat never exits unless there is an error, and prints the snapshot every seconds. The default interval is 600 seconds.
-m Cnfsstat prints out information suitable for mrtg.
-P Cnfsstat writes PID into <pathrun in inn.conf>/cnfsstat.pid.
-p Cnfsstat prints out an mrtg config file.
-s Cnfsstat prints the result to syslog(3).
HISTORY
Written by Katsuhiro Kondou <kondou@nec.co.jp> for InterNetNews. This is revision 1.4.2.2, dated 2002/09/01.
SEE ALSO
cycbuff.conf(5), inn.conf(5), storage.conf(5).
CNFSSTAT(8)