The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Simple newbie grep question doubleminus UNIX for Dummies Questions & Answers 5 04-06-2008 06:05 PM
Ok simple question for simple knowledge... Corrail UNIX for Dummies Questions & Answers 1 11-28-2005 01:03 PM
Simple grep - Not sure it makes sense! GNMIKE UNIX for Dummies Questions & Answers 5 10-22-2005 02:51 AM
simple grep question google UNIX for Dummies Questions & Answers 5 01-27-2003 11:00 PM
Simple grep questions nitin UNIX for Dummies Questions & Answers 2 10-15-2001 12:52 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-02-2005
citygov citygov is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 3
Simple grep question, but I'm out of practice

Never mind, I did more research, and now am using grep -v './temp/', dumping it into a new text file, then using mv -f to make that the original file. Thanks for reading!

---------------

Hi folks, I haven't done any scripting in years, and now I have a problem. Our backup tapes are filling up, and I'd like to remove an entire directory from the backup. The script we use creates a file for the backup (/tmp/backuplist), and I'd like to use grep to help me remove anything in the "/temp" directory. I've attached the script if you'd like an example.

If someone could tell me the syntax I'd need to do to remove this from my backup, I'd greatly appreciate it - thank you!

Mike
Attached Files
File Type: txt backup.txt (6.8 KB, 25 views)

Last edited by citygov; 08-02-2005 at 01:59 PM.. Reason: Found my own answer
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0