GIDForums  

Go Back   GIDForums > Computer Forums > Computer Software Forum - Linux
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Jan-2004, 13:04
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about

Changing a line in a file


I have this set of public scripts that I would like update the copyright of.

the line to be changed is
* Copyright (C) 2001-2003 PMS Dev Team

and it should be changed to

* Copyright (C) 2001-2004 PMSys Dev Team

I haven't found a Linux tool to do this yet..

so if anybody knows please let me know
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #2  
Old 10-Jan-2004, 03:09
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
I found something that works good enough..

Code:
for file in * do echo $file cat $file | sed s/'2001-2003 PMS'/'2001-2004 PMSys'/mg > $file.new && mv $file.new $file done
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
 
 

Recent GIDBlogVista ?Widgets? on Windows XP by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD Burner Help - Power Calibration Error.... JonBoy420 Computer Hardware Forum 111 19-Feb-2009 03:54
Changing monitors on a Linux machine JdS Computer Software Forum - Linux 10 23-Dec-2004 09:49
Limited file size.... lament Apache Web Server Forum 2 31-May-2004 13:35
CD Buring Failed skanth2000 Computer Hardware Forum 1 15-Nov-2003 03:52
How Do i get php to find out the file type of a file for me? viperman95833 MySQL / PHP Forum 2 08-Mar-2003 09:48

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:58.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.