Sponsored Content
Operating Systems Linux Multiple files and word substitution Post 302205116 by capri_drm on Friday 13th of June 2008 01:08:07 PM
Old 06-13-2008
Solution was in some thread .

cat word_replace.shl
#!/bin/ksh

for y in `ls *.sql`;
do sed "s/UHCDEV01/UHCETL01/g" $y > temp; mv temp $y;
done

found it .

Thread closed .
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

word substitution in csh

I have data that looks something like this: term1/term2/2005-12-01 13:20:30/term4 I need to make it look like this: term1/term2/20051201132030/term4 I am using a csh script. I have tried to do it by first converting the date/time to the format in which I want it, and then replacing it... (1 Reply)
Discussion started by: oprestol
1 Replies

2. Linux

word substitution in unix

Hi I am trying to substitute 2 words on the same line with _S02 as suffix. Like this . IN "TSOPS09" INDEX IN "TSOPIX09" ; to IN "TSOPS09_S02" INDEX IN "TSOPIX09_S02" ; i used the following code to make the change , it works fine for first substitution not the second one . ... (6 Replies)
Discussion started by: capri_drm
6 Replies

3. Linux

Last word substitution

Ok this is last question of the day from my side . I have this file and I want to replace the last letter " , " with " ) " . The input file is #cat zip.20080604.sql CONNECT TO TST103 ; SET SESSION_USER OPSDM001 ; SET CURRENT SCHEMA OPSDM001 ; CREATE VIEW OPSDM001.vw_zip SELECT ( ... (4 Replies)
Discussion started by: capri_drm
4 Replies

4. Shell Programming and Scripting

whole word substitution in SED

I am trying to substitute something with sed and what I want is to substitute a whole word and not part of a word. ie sed 's/class/room/g' filename will substitute both class and classes into room and roomes which is not what i want Grep for instance can use the -w option or <> grep -w... (7 Replies)
Discussion started by: gikay01
7 Replies

5. Red Hat

Find a word from multiple level files on Linux

To find a word from multiple level files: "find . -type f -exec grep {} +" is working on UNIX machines but not working on Linux machine. What is the equivalent command on Linux to find the word from multiple level files? Input is appreciated. (3 Replies)
Discussion started by: ywu081006
3 Replies

6. Shell Programming and Scripting

Searching a word in multiple files

Hi All, I have a issue in pulling some heavy records , I have my input file has 10,000 records which i need to compare with daily appended log files from (sep 1st 2009 to till date) . I tried to use grep fgrep and even sed , but the as time is factor for me , i cannot wait for 5 days to get the... (3 Replies)
Discussion started by: rakesh_411
3 Replies

7. Shell Programming and Scripting

Help with word substitution

Hi all, I am trying to write a script substituting one word in a particular file with another word (sed) but I'm having trouble creating the backup file. The following are my instructions: The Unix program sed is useful for making simple substitutions throughout an entire file. But one of... (0 Replies)
Discussion started by: Hoppy56
0 Replies

8. Solaris

How to search for a word in multiple files

Hi, I want to find for a particular word which is existing in different files and folders under the parent directory. What command can I use to retrieve all the file names which is having the word. (1 Reply)
Discussion started by: rogerben
1 Replies

9. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL. I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
dpkg-genchanges(1)						    dpkg suite							dpkg-genchanges(1)

NAME
dpkg-genchanges - generate Debian .changes files SYNOPSIS
dpkg-genchanges [option...] DESCRIPTION
dpkg-genchanges reads information from an unpacked and built Debian source tree and from the files it has generated and generates a Debian upload control file (.changes file). OPTIONS
--build=type Specifies the build type from a comma-separated list of components (since dpkg 1.18.5). The allowed values are: source Upload the source package. any Upload the architecture specific binary packages. all Upload the architecture independent binary packages. binary Upload the architecture specific and independent binary packages. This is an alias for any,all. full Upload everything. This is alias for source,any,all, and the same as the default case when no build option is specified. -g Equivalent to --build=source,all (since dpkg 1.17.11). -G Equivalent to --build=source,any (since dpkg 1.17.11). -b Equivalent to --build=binary or --build=any,all. -B Equivalent to --build=any. -A Equivalent to --build=all. -S Equivalent to --build=source. The -sx options control whether the original source archive is included in the upload if any source is being generated (i.e. -b or -B haven't been used). -si By default, or if specified, the original source will be included only if the upstream version number (the version without epoch and without Debian revision) differs from the upstream version number of the previous changelog entry. -sa Forces the inclusion of the original source. -sd Forces the exclusion of the original source and includes only the diff. -vversion Causes changelog information from all versions strictly later than version to be used. -Cchanges-description Read the description of the changes from the file changes-description rather than using the information from the source tree's changelog file. -mmaintainer-address Use maintainer-address as the name and email address of the maintainer for this package, rather than using the information from the source tree's control file. -emaintainer-address Use maintainer-address as the name and email address of the maintainer for this upload, rather than using the information from the source tree's changelog. -Vname=value Set an output substitution variable. See deb-substvars(5) for a discussion of output substitution. -Tsubstvars-file Read substitution variables in substvars-file; the default is debian/substvars. No variable substitution is done on any of the fields that are output, except for the contents extracted from each binary package Description field (since dpkg 1.19.0), however the special variable Format will override the field of the same name. This option can be used multiple times to read substitution variables from multiple files (since dpkg 1.15.6). -Dfield=value Override or add an output control file field. -Ufield Remove an output control file field. -ccontrolfile Specifies the main source control file to read information from. The default is debian/control. -lchangelog-file Specifies the changelog file to read information from. The default is debian/changelog. -ffiles-list-file Read the list of files to be uploaded here, rather than using debian/files. -Fchangelog-format Specifies the format of the changelog. See dpkg-parsechangelog(1) for information about alternative formats. -uupload-files-dir Look for the files to be uploaded in upload-files-dir rather than .. (dpkg-genchanges needs to find these files so that it can include their sizes and checksums in the .changes file). -q Usually dpkg-genchanges will produce informative messages on standard error, for example about how many of the package's source files are being uploaded. -q suppresses these messages. -O[filename] Print the changes file to standard output (the default) or to filename if specified (since dpkg 1.18.5). -?, --help Show the usage message and exit. --version Show the version and exit. FILES
debian/files The list of generated files which are part of the upload being prepared. dpkg-genchanges reads the data here when producing a .changes file. SEE ALSO
deb-substvars(5), deb-src-control(5), deb-src-files(5), deb-changelog(5), deb-changes(5). 1.19.0.5 2018-04-16 dpkg-genchanges(1)
All times are GMT -4. The time now is 11:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy