Sponsored Content
Top Forums Shell Programming and Scripting fast search and replace in all files Post 302161725 by dbsurf on Friday 25th of January 2008 04:16:30 PM
Old 01-25-2008
Hi Kevin,

The above option is not working properly..can u have a look at it
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Fast way of find and replace, help

Hi All, I have nearly 200 files in a directory, each file is of nearly of 5000 lines. Each line of each file is having its 3rd field to be replaced by corresponding replace_string(2nd field of file1.out below). i.e. -Search the 3rd field of each line of each of 200 files in file1.out, get... (1 Reply)
Discussion started by: jkl_jkl
1 Replies

2. Shell Programming and Scripting

Search and Replace between two files

Hi all- I've got 2 files: One is the final results and one is a result set from a query. In the final results files I have placeholder strings in there that need to be replaced by the corresponding strings from the query file. So File#1 (FINAL RESULTS) LINEID CLIENT ID REP ... (1 Reply)
Discussion started by: Cailet
1 Replies

3. Shell Programming and Scripting

search and replace in many files

I have a directory full of files. Most of the code in the files is the same accept for a few parameter values. I want to remove hard coded values and replace it with a parameter that I can pass. This is oracle pl/sql anonymous blocks. so the code is similiar to this function myfunc (p_myvar ... (1 Reply)
Discussion started by: guessingo
1 Replies

4. Shell Programming and Scripting

Search and replace text in many files

Hello, I am very new to Linux and am trying to find a way for following problem. I have a number of files in a folder as Export000.dat, Export001.dat ..and so on. Each file has a string field 'Absolute velocity'. I want it to be replaced by 'Pixel shift' in all the files. I tried something like... (4 Replies)
Discussion started by: chirag.joshi
4 Replies

5. Shell Programming and Scripting

Search and replace string in files

I'm trying to remove the following string from several files. <img heigth="1" width="1" border="0" src="http://myteenmovies.net/t.php?id=5540372">I'm using the following script #!/bin/bash # This script will search and replace all regular files for a string # supplied by the user and... (1 Reply)
Discussion started by: d13g0sv
1 Replies

6. UNIX for Dummies Questions & Answers

Search and replace across files

Hi All, HP-UX oradev3 B.11.11 U 9000/800 3251073457 I have following files all contains text like "919642990137@". I need to search this text across all files and replace it with something like "919717298765@". I was wondering, how to accomplish this task? cpmprod_status.sh... (8 Replies)
Discussion started by: alok.behria
8 Replies

7. Programming

Search and replace in two different files

Hi there, i got the following problem. i need a bash script to correct e-mail addresses in an csv. i got a huge csv like this A B C D heiner.holber.somewhere.ch heiner holber heiner.holber@somewhere.ch So A is the wrong... (8 Replies)
Discussion started by: molker
8 Replies

8. Shell Programming and Scripting

Search and Replace in multiple files

Hello, I have hundreds of files in which I need to change email address. Here is what I am trying to do: 1. All text files are in a directory "a" 2. In the text file, I want to replace email address for preparer. All these lines start with {{PreparerEmail and end with }}. The email... (3 Replies)
Discussion started by: cartrider
3 Replies

9. Shell Programming and Scripting

Search replace with awk using 2 files

I have a bit of a complex problem that I would like to solve with awk. It is essentially a 2-part problem. I have a large directory of files with the same format, each with 266 lines. The first 206 lines of each file are filled with attribute information. Then the following 60 lines consist... (4 Replies)
Discussion started by: owwow14
4 Replies

10. UNIX for Dummies Questions & Answers

Search in one type of files and replace

I am not sure how to search and replace the word in the few specific files. I need to search and replace word in only the name containing pepsi in the filename. (12 Replies)
Discussion started by: ramkumar15
12 Replies
GXINT(1)						      General Commands Manual							  GXINT(1)

NAME
gxint - load and run an interactive GEANT application SYNOPSIS
gxint [options] file(s) DESCRIPTION
gxint is a script to load and run a GEANT application, which is usually in the form of Fortran source code. The desired routines are given in file(s). OPTIONS
-d driver Specify a graphics driver. The available options on Linux are X11 and Motif (which should also work with lesstif). X11 is the default. -g geant_version Specify the version of GEANT to use. Current default is 3.21. This option only makes sense if you have installed a GEANT version other than 3.21 (i.e. one not packaged by Debian). -h host Useful with the -d X11 option only. Specifies the hostname used for the display; syntax is identical with that of $DISPLAY. If no hostname is specified, the value of $DISPLAY is used. -l library Specify additional libraries. This option may be repeated to add several libs. -L path Additional loader search path. Useful if additional libraries are specified with -l option. This option may be repeated with more than one pathname. -m Do NOT use main program from cernlib area. -o outputfile Do not immediately run GEANT, but instead produce an executable file named outputfile. If "-o" is not given, the executable file will be created in $HOME, named GEANTpid (pid being the process ID of gxint), and run automatically. -v version Specify version of $CERN_LEVEL. This is meaningless unless you have installed an upstream version of CERNLIB (i.e. not packaged by Debian); see the file /usr/share/doc/cernlib-base/README.Debian. -?, --help Show a summary of options. SEE ALSO
cernlib(1) - script to list required -l and -L options given a list of CERN libraries /usr/share/doc/cernlib-base/README.Debian describes how one might use the -v flag with Debian's versions of the cernlib and gxint scripts if one has an upstream version of CERNLIB installed. CERNLIB documentation for all related libraries and programs is available at the following URL: http://cern.ch/cernlib/ AUTHOR
This manual page was written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux system (but may be used by others). COPYRIGHT
This manual page is (C) Copyright Kevin McCarty, 2002, 2003, 2004, 2005. January 24, 2003 GXINT(1)
All times are GMT -4. The time now is 10:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy