![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Search files between a date range | zcanji | Shell Programming and Scripting | 7 | 05-27-2009 01:31 PM |
| How can i copy files by date last modifed range? | geauxsaints | UNIX for Advanced & Expert Users | 4 | 05-25-2008 12:06 PM |
| how do I identify files with characters beyond a certain range. | kcsunsun01dev | Shell Programming and Scripting | 3 | 02-14-2008 05:51 PM |
| cp only files in certain date range | ee7klt | UNIX for Dummies Questions & Answers | 1 | 06-27-2005 10:35 PM |
| Moving Files within a particular date range | rooh | UNIX for Dummies Questions & Answers | 3 | 03-18-2002 10:59 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Code:
for file in update.0001* update.0002*
do
rm -f $file
done
Code:
for file in update.0001* update.0002*
do
echo "This file is gone: $file"
done
|
|
||||
|
i need to remove the line in a file, such as
<script language=javascript><!-- . . . .. . . . . .. .. . . .. . </scripts> I need to remove the link with the header starts with <script language ....</scripts> Also, this line has to be removed for the files with the extension of *.html ... Could you please help me on this... |
|
||||
|
Quote:
Code:
sed '/script language/,/scripts>/d' filename |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|