The UNIX and Linux Forums  

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
delete to end of line with SED coldcanuck Shell Programming and Scripting 7 07-01-2008 09:29 AM
how to delete text from line starting pattern1 up to line before pattern2? repudi8or Shell Programming and Scripting 5 04-15-2008 10:25 PM
how to delete line with matching text and line immediately after orahi001 UNIX for Dummies Questions & Answers 6 01-15-2008 12:34 AM
delete a line based on first character of the line borncrazy UNIX for Dummies Questions & Answers 2 12-06-2005 03:27 PM
delete some line alisev UNIX for Dummies Questions & Answers 2 03-29-2002 11:23 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 11-14-2006
happyv happyv is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 209
delete line

Hi,

One of the directory have a lot of files (some sample below), I will like to list out all BACKUPFILESEQ*.archived ONLY and output into result.txt. All of the file after 5 digit no need to output into result.txt (I only need the name like BACKUPFILESEQ%%%%%.archived).

/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04047.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04048.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04049.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04050.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04051.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04052.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04053.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04054.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04055.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04055_20061019-10:25:37_20061019-10:25:37.FID_BAD.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04056.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04057.archived
/appl/CH_DATA/archive/BACKUP/CACHE/BACKUPFILESEQ04058.archived

Please help!!

Thx!!!
 

Bookmarks

Tags
sed delete line

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 09:37 AM.


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