Sponsored Content
Top Forums Shell Programming and Scripting How to update copyright header on a folder Post 302322160 by Franklin52 on Wednesday 3rd of June 2009 03:22:09 AM
Old 06-03-2009
With sed you can do something like:

Code:
sed '/Copyright © 2004, 2005,/Copyright © 2003, 2009,/g' file > newfile

With awk:

Code:
awk '/Copyright © 2004, 2005,/{sub("2004, 2005","2003, 2009")}1' file > newfile

 

10 More Discussions You Might Find Interesting

1. Linux

Reading the header of a tar file(posix header)

say i have these many file in a directory named exam. 1)/exam/newfolder/link.txt. 2)/exam/newfolder1/ and i create a tar say exam.tar well the problem is, when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories. on the... (2 Replies)
Discussion started by: Tanvirk
2 Replies

2. Shell Programming and Scripting

awk script to update header record

I am using HP UX and think this may be done with awk but bot sure. I have a file with a several header records and undeneath many detail records I need to put in the header record the number of detail records above this header record and number of detail records below this header record Header... (5 Replies)
Discussion started by: klut
5 Replies

3. Shell Programming and Scripting

Renaming all header to specific header pattern

Input #HAC0253 EFVHIJHIJEFVTHIJOPKOPKTEFVEFVEFVOPKHIJOPKOPKHIJTTEFVEFVTEFV #BASFS12 EFVEFVHIJEFVEFVTOPKEFVOPKTHIJTTHIJOPK #ACG5115 TEFVEFVOIJEFVHIJHIJOPKOPKHIJHIJTTEFVEFVOPKTTEFVEFVOPKHIJOPKOPKOPK #ECG5114 IJTOPKHIJEFVOEFVEFVOPKTTEFVEFVOPKHIJOPKOPKOPK . . Output (5 Replies)
Discussion started by: patrick87
5 Replies

4. Shell Programming and Scripting

Folder Update Script

Hi, I would like to write a script for send out a notification once a folder has been updated or receive a file. I have folder with name SOURCE,this folder receiving source files from third party vendor in 24hrs.now i want a notification mail once the folder updated with some thing or once... (2 Replies)
Discussion started by: koti_rama
2 Replies

5. Shell Programming and Scripting

How to update folder name after every 2 month

Hello Guru, I need a logic which can rename my folder after every two month with current time stamp... ex: if folder name is My_Folder_20102011 then after two month it should be My_Folder_20122011 its there any way to get it, please share. :confused: Thanks (1 Reply)
Discussion started by: aks_1902
1 Replies

6. UNIX for Dummies Questions & Answers

Merge all csv files in one folder considering only 1 header row and ignoring header of all others

Friends, I need help with the following in UNIX. Merge all csv files in one folder considering only 1 header row and ignoring header of all other files. FYI - All files are in same format and contains same headers. Thank you (4 Replies)
Discussion started by: Shiny_Roy
4 Replies

7. Shell Programming and Scripting

add header in each file of folder

My files location Dir=/pp/Output/Test/ I have 100 .txt files on above location. I want add header "pt all" on each file. Sample Text file Hi Kalol Jt all q Output i want lt all Kalol Jt all (2 Replies)
Discussion started by: asavaliya
2 Replies

8. UNIX and Linux Applications

Script to delete few rows from a file and then update header

HJKL1Name00014300010800000418828124201 L201207022012070228XAM 00000000031795404 001372339540000000000000000000000 COOLTV KEYA Zx00 xI-50352202553 00000000 00000000 G000000000000 00000000 ... (10 Replies)
Discussion started by: mirwasim
10 Replies

9. Shell Programming and Scripting

Find header in a text file and prepend it to all lines until another header is found

I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty. I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies

10. Shell Programming and Scripting

Bash script - How to update header of scripts in one pass - multiline search/replace

Hello. A find command return a list of file. For each fileReplace the content starting with the first "§" (of two) ending with last "ɸ" (of two), regardless of the content ( five lines ) by the following content (exactly) : §2019_08_23§ # # ... (8 Replies)
Discussion started by: jcdole
8 Replies
BUILDD-WATCHER(1)						   Debian sbuild						 BUILDD-WATCHER(1)

NAME
buildd-watcher - watch buildd activity SYNOPSIS
buildd-watcher VERSION
This man page documents the packaged version of buildd-watcher. This version is maintained by the buildd-tools project developers on Alioth (https://alioth.debian.org/projects/buildd-tools/). There is also a version maintained by Ryan Murray which is adapted to build daemon needs, with similar functionality. This version should be equally capable of working in a buildd setup, but has a number of enhancements aimed at making it suitable for use by end-users. DESCRIPTION
buildd-watcher monitors the activity of the buildd daemon and restarts it if required. It additionally cleans up old files, and rotates and archives log files. FILES
/etc/buildd/buildd.conf Configuration, maintained by the system administrator. This may be used to override the defaults. ~/.builddrc User-specific configuration. AUTHORS
Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>. sbuild is based on debbuild, written by James Troup <james@nocrew.org> and has been modified by Ben Collins <bcollins@debian.org>, Ryan Murray <rmurray@debian.org>, Francesco Paolo Lovergine <frankie@debian.org>, Michael Banck <mbanck@debian.org>, and Roger Leigh <rleigh@debian.org> COPYRIGHT
Copyright (C) 1998-2000 Roman Hodek <roman@hodek.net> Copyright (C) 1998-1999 James Troup <troup@debian.org> Copyright (C) 2003-2006 Ryan Murray <rmurray@debian.org> Copyright (C) 2001-2003 Rick Younie <younie@debian.org> Copyright (C) 2003-2004 Francesco Paolo Lovergine <frankie@debian.org> Copyright (C) 2005 Michael Banck <mbanck@debian.org> Copyright (C) 2005-2008 Roger Leigh <rleigh@debian.org> SEE ALSO
buildd(1). Version 0.63.2 18 Aug 2012 BUILDD-WATCHER(1)
All times are GMT -4. The time now is 11:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy