Sponsored Content
Top Forums Shell Programming and Scripting Check all files in directories for string and remove.. possible? Post 90977 by Just Ice on Tuesday 29th of November 2005 10:15:39 AM
Old 11-29-2005
you could also do ...

grep xxx@yyy.com *
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What/How to check before deleting files and directories

Hi there, I have a some directories containing web files that are old, and I need to remove them. I know that there might be sym links and hyperlinks pointing to these old directories. If that's the case, then I'll have to fix the links before deleting these old directories to avoid broken... (4 Replies)
Discussion started by: yvochan
4 Replies

2. Shell Programming and Scripting

How to Remove Ctrl M characters in files from directories and its subdirectories

Hi, How to recursively remove Ctrl M characters in files from a directory and its sub directory ? I know unix2dos command is there but to remove in bunch of files ... ? Thanks (7 Replies)
Discussion started by: skdp
7 Replies

3. Shell Programming and Scripting

Need to remove files older than 30 days except directories

Hi, I need to remove files (*.trc) which are older than 30 days from one location. My problem is there I do not want to visit any of the directories at that location. I want to search files at that particular location only (need to skip directorys at that location). maxdepth option is there... (6 Replies)
Discussion started by: malaymaru
6 Replies

4. Shell Programming and Scripting

read list of filenames from text file and remove these files in multiple directories

I have a large list of filenames from an Excel sheet, which I then translate into a simple text file. I'd like to use this list, which contains various file extensions , to archive these files and then remove them recursively through multiple directories and subdirectories. So far, it looks like... (5 Replies)
Discussion started by: fxvisions
5 Replies

5. Shell Programming and Scripting

Check file size and remove files

Hi, Here we have a situation where we have to check the file size and if the file size is greater than 0 bytes then remove the files from the directory. 1)EdwTrxn 2)EdwPost 3)EdwTndr 4)EdwSls 5)EdwSlsRej 6)EdwTndrRej Files will be created in the directory in the following manner. ... (5 Replies)
Discussion started by: srivsn
5 Replies

6. Shell Programming and Scripting

check if multiple directories exist else create missing directories

Hi , I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory. how to write this in a simple script, I have made my code complex if ; then taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Discussion started by: ramky79
7 Replies

7. Shell Programming and Scripting

.sh script / Check for file in two directories then cat the files

Hi, Here is what i'm trying to do, -Check in two directories for a user inputed filename -Then cat all the version found of the file to the current screen I am a total nembie to programming, here what i have done so far.... #!/bin/bash #Check in /home/loonatic and /var/named/master... (2 Replies)
Discussion started by: Loonatic
2 Replies

8. AIX

How to remove ISMP files when the directories have been deleted?

Hello all, I've been asked to help with some cleanup on a couple of systems that were running some Websphere apps. I need to remove the following filesets: mqsi61.cfgmgrc 6.1.0.2 COMMITTED Config. Manager Component mqsi61.cfgmgrf 6.1.0.2 COMMITTED Config.... (4 Replies)
Discussion started by: ZekesGarage
4 Replies

9. Shell Programming and Scripting

Remove files in directories

I am trying to remove files from a couple of directories after a process completes. Below is what I have so far, but the command does not run and cygwin closes too fast to read the error. Also, is it possible to have the printf be displayed until the files are removed then printf in italics is... (8 Replies)
Discussion started by: cmccabe
8 Replies

10. UNIX for Beginners Questions & Answers

Delete Directories and its files that begin with the same character string

I wrote a shell script program that supposed to delete any directories and its files that begin with the same character string . The program is designed to delete directories and its files that are one day old or less and only the directories that begin with the same character string. The problem... (1 Reply)
Discussion started by: dellanicholson
1 Replies
genufi(8)						      System Manager's Manual							 genufi(8)

NAME
genufi - Generates a User File Inventory (UFI) file SYNOPSIS
/usr/bin/genufi DESCRIPTION
The genufi utility creates a User File Inventory (UFI) file that contains the names of user files created or copied to your system after an installation. Some of these files reside on file systems that are overwritten during a new installation of the operating system. You must have superuser privileges to run the genufi utility, and you must invoke the genufi utility from the /usr/.smdb. directory. To create the UFI file, the genufi utility checks the Master Synchronization Inventory (MSI) file created by the invsync utility to deter- mine which file systems will be overwritten by a complete installation. The genufi utility searches those file systems for user files and writes these entries to the UFI file. File systems that remain intact during a new installation of the operating system are not searched. The genufi utility also filters out certain files and directories that would not commonly be considered for backup. For example, some log files, installation files, and temporary directories do not need to be restored after a complete installation and are not written to the UFI file. The following directories are not included: /tmp /tmp /usr/.smdb. /usr/sys/HOST /var/adm/smlogs /var/adm/syslog.dated /var/rwho /var/tmp In the previous list, HOST represents the hostname of the system (such as /usr/sys/BLUTO) on the system named bluto. The following files are not included: */core */*.dummy */.new.. /osf_boot */.profile */.proto.. /var/adm/binary.errlog /var/adm/xdm/xdm-pid */vmcore /*vmunix Edit the UFI file to remove the entries for files and directories that you do not want to back up. The UFI file is written in the setld inventory file format. Refer to the stl_inv(4) reference page for more information. RESTRICTIONS
You must have superuser privileges to run the genufi utility. You must invoke the genufi utility from the /usr/.smdb. directory. FILES
Master Synchronization Inventory file User File Inventory file SEE ALSO
ils(8), invsync(8), udelta(8), udetect(8), updmv(8), usync stl_inv(4) genufi(8)
All times are GMT -4. The time now is 11:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy