Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to delete specific files only Post 302207997 by i.scientist on Sunday 22nd of June 2008 11:55:07 AM
Old 06-22-2008
Thank you.

Problem solved.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

delete files in specific directory

i have a directory "ABC" with lots of old files and sub directories in it. the issue now is i want to delete away files which are older than 15 days in "ABC" without deleting the files in the sub directories and without deleting the sub directory. i tried using find command but it will drill down... (2 Replies)
Discussion started by: legato
2 Replies

2. Shell Programming and Scripting

How do I delete all files that contain specific text?

Hi all, I want to remove the files from a folder whcih contain a specific text in it. eg: If i have the files like xxxx.NAME.adadd.ajfaj.kjfha agsg.NAME.dfshd.djsh.sdjhf asgd.NAME2.sdhj.djhf.sjdhf shdd.NAME2.dhse.tywe.eyio How to remove the files which contain the pattern "NAME"... (3 Replies)
Discussion started by: sparks
3 Replies

3. Shell Programming and Scripting

Delete files created before specific date.

There is a system logging a huge amount of data and we need to delete some of the older logs .I mean the files that are created before one week from today. Here is a listing of files that are sitting there: /usr/WebSphere/AppServer/logs # ls -l -rw-r--r-- 1 root system 3740694 May... (5 Replies)
Discussion started by: moustafashawky
5 Replies

4. Shell Programming and Scripting

How to delete files in specific dir

I've got a problem how to delete files from specific directory. I don't want do it recursively but only in specific directory. So, command like find /home/dirname/ -mtime +8 -type f -exec rm {} \; is not for me because this command will remove ifs files in /home/dirname and all... (2 Replies)
Discussion started by: zukes
2 Replies

5. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurence of a specific word

Hello, I have several files in a specific directory. A specific string in one file can occur in another files. If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string. Example. file1 ShortName "Blue... (2 Replies)
Discussion started by: premier_de
2 Replies

6. Shell Programming and Scripting

Delete files in a folder with a specific ending

Hi I have files that end with .txt.txt that i want to delete. But I also have files that end with .txt that I want to leave intact. How do I specifically delete files that end with .txt.txt in a folder. thanks (5 Replies)
Discussion started by: kylle345
5 Replies

7. Shell Programming and Scripting

rsync delete specific files - from different target folder

Hi, I need to use rsync to delete multiple files(only specified files not all) using --delete option, these files are located in different target folders. Instead of running rsync command multiple times for each file, can we achieve this with one time execution? your help is much... (0 Replies)
Discussion started by: MVEERA
0 Replies

8. UNIX Desktop Questions & Answers

How to delete files from a specific date?

Guys, I am wondering how to remove files for a specific date in a directory? for instance when I do ls -l , i see many files. And i want to delete files for date May 15: 58252015 May 10 03:45 my_05102012.log 58252015 May 15 06:45 my_05152012.log Thanks (8 Replies)
Discussion started by: DallasT
8 Replies

9. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurrence of a specific word

he following are the files available in my directory RSK_123_20141113_031500.txt RSK_123_20141113_081500.txt RSK_126_20141113_041500.txt RSK_126_20141113_081800.txt RSK_128_20141113_091600.txt Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Discussion started by: kridhick
7 Replies

10. UNIX for Beginners Questions & Answers

Delete all files created in specific year

I have more than 200K files created in year 2017 under directory having size of 50GB. I want to all these files in one shot. Is there any faster option available with find command to delete all these file ? (6 Replies)
Discussion started by: sp23029
6 Replies
FBB::SyslogBuf(3bobcat) 				     Stream Buffer for Syslog					   FBB::SyslogBuf(3bobcat)

NAME
FBB::SyslogBuf - A streambuf object inserting syslog messages SYNOPSIS
#include <bobcat/syslogbuf> Linking option: -lbobcat DESCRIPTION
FBB::SyslogBuf objects may be used as a std::streambuf of std::ostream objects to write syslog messages using stream facilities. NAMESPACE
FBB All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB. INHERITS FROM
std::streambuf ENUMERATIONS
The following enumerations are defined in the namespace FBB: Priority: The values of this enumeration match the corresponding priority LOG_xxx values used with syslog(3): o EMERG: system is unusable; o ALERT: action must be taken immediately; o CRIT: critical conditions; o ERR: error conditions; o WARNING: warning conditions; o NOTICE: normal, but significant, condition; o INFO: informational message; o DEBUG: debug-level message; Facility: The values of this enumeration match the corresponding facility LOG_xxx values used with syslog(3): o AUTHPRIV: security/authorization messages (private) o CRON: clock daemon (cron and at) o DAEMON: other system daemons o KERN: kernel messages o LOCAL0: reserved for local use. LOCAL1 through LOCAL7 are available as well. o LPR: line printer subsystem o MAIL: mail subsystem o NEWS: USENET news subsystem o SYSLOGBUF: messages generated internally by syslogbufd o USER: generic user-level messages o UUCP: UUCP subsystem CONSTRUCTOR
o SyslogBuf(char *ident, FBB::Priority priority = FBB::NOTICE, FBB::Facility facility = FBB::USER, int option = 0): This Syslogbuf() constructor initializes the streambuf. The ident parameter is usually the name of the program. Its contents are prepended to syslog messages. Use value 0 if no text needs to be prepended. The priority parameter determines the importance of the message. By default FBB::NOTICE is used. The facility parameter determines the type of program doing the logging. By default FBB::USER is used. The option parameter may be used to specify various options (use the binary `bitor' (`|') operator to combine options): LOG_CONS: write directly to system console if there is an error while sending to system logger LOG_NDELAY: open the connection immediately (normally, the con- nection is opened when the first message is logged) LOG_PERROR: print to stderr as well LOG__PID: include PID with each message By default no options are used. The copy constructor is not available. MEMBER FUNCTIONS
All members of std::streambuf are available, as FBB::SyslogBuf inherits from this class. o Priority defaultPriority() const: Returns the default priority. I.e., the priority that will be used for the messages after inserting endl, unless altered by setDe- faultPriority(). o Priority priority() const: Returns the next priority. I.e., the priority that will be used for the next message, unless altered by setPriority(). o Priority setDefaultPriority(Priority priority): Changes the default priority of the next syslog-message after inserting std::eoln. Initially, the priority is determined as the value passed to the constructor. The previously active default priority is returned. o Priority setPriority(Priority priority): Changes the priority for the next syslog message (after std::eoln has been inserted). Subsequent messages will use the default pri- ority again. The previously active priority setting is returned. PROTECTED MEMBER FUNCTION
The member listed in this section implements the tasks of the comparably named virtual function in the class's private interface. This sep- arates the redefinable interface from the user-interface. The class Syslogbuf can, in accordance with Liskov's Substitution Principle, be used as a std:streambuf; but it also offers a facility for classes deriving from Syslogbuf. This facility is listed here. o int pSync(): The contents of the Syslogbuf's internal buffer is flushed. EXAMPLE
See also syslogstream(3bobcat) #include <iostream> #include <bobcat/syslogbuf> using namespace std; using namespace FBB; int main(int argc, char **argv) { ostream sls(new SyslogBuf(argv[0])); sls << SyslogStream::debug << "Hello world" << endl; sls << SyslogStream::strerrno << endl; return 0; } FILES
bobcat/syslogbuf - defines the class interface SEE ALSO
bobcat(7), openlog(3), syslog(3), syslogstream(3bobcat) BUGS
The constructor's option parameter is an int. Because of this, int values rather than enumeration values are passed to the constructor. It is the responsibility of the programmer to pass defined option values only. DISTRIBUTION FILES
o bobcat_3.01.00-x.dsc: detached signature; o bobcat_3.01.00-x.tar.gz: source archive; o bobcat_3.01.00-x_i386.changes: change log; o libbobcat1_3.01.00-x_*.deb: debian package holding the libraries; o libbobcat1-dev_3.01.00-x_*.deb: debian package holding the libraries, headers and manual pages; o http://sourceforge.net/projects/bobcat: public archive location; BOBCAT
Bobcat is an acronym of `Brokken's Own Base Classes And Templates'. COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL). AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl). libbobcat1-dev_3.01.00-x.tar.gz 2005-2012 FBB::SyslogBuf(3bobcat)
All times are GMT -4. The time now is 07:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy