Sponsored Content
Top Forums Shell Programming and Scripting Keyword search/replace for two text files? Post 302766417 by pxalpine on Monday 4th of February 2013 04:44:09 PM
Old 02-04-2013
Thanks Corona, it works!

I'm seeing an extra <key>$</key> at the end of every output line though, but I can just batch delete that, thanks!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search and replace multi-line text in files

Hello I need to search for a mult-line text in a file exfile1 and replace that text with another text. The text to search for is in exfile2 and the replacement text is in exfile3. I work with kornshell under AIX and need to do this with a lot of files. (the file type is postscript and they need... (10 Replies)
Discussion started by: marz
10 Replies

2. Shell Programming and Scripting

Perl: Search for string on line then search and replace text

Hi All, I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text. An example of 4 lines in my file is: 1. MatchText_randomNumberOfText moreData ReplaceMe moreData 2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Discussion started by: Crypto
4 Replies

3. UNIX for Dummies Questions & Answers

search and replace a specific text in text file?

I have a text file with following content (3 lines) filename : output.txt first line:12/12/2008 second line:12/12/2008 third line:Y I would like to know how we can replace 'Y' with 'N' in the 3rd line keeping 1st and 2nd lines same as what it was before. I tried using cat output.txt... (4 Replies)
Discussion started by: santosham
4 Replies

4. Shell Programming and Scripting

how to do search and replace on text files in directory

I was google searching and found Perl as a command line utility tool This almost solves my problem: find . | xargs perl -p -i.old -e 's/oldstring/newstring/g' I think this would create a new file for every file in my directory tree. Most of my files will not contain oldstring and I... (1 Reply)
Discussion started by: siegfried
1 Replies

5. Shell Programming and Scripting

Search and replace text

Hello, I am trying to search and replace but I don't know how to do it. My simple knowlegde in search and replace using sed is not helping me at all. File: its a cause value #22: dfg ggg Cause value #1: aasfa fasdf asfa value #22: affg gggg Basically i want to replace the... (6 Replies)
Discussion started by: balan1983a
6 Replies

6. Shell Programming and Scripting

compare two files and search keyword and print output

You have two files to compare by searching keyword from one file into another file File A 23 >pp_ANSWER 24 >aa hello 25 >jau head wear 66 >jss oops 872 >aqq olps ploww oww sss 722 >GG_KILLER ..... large files File B Beta done KILLER John Mayor calix meyers ... (5 Replies)
Discussion started by: cdfd123
5 Replies

7. 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

8. Shell Programming and Scripting

To replace a keyword for a number of files in a path

I have to search for a keyword (UTF-16) in xml file and if the keyword is found i have to convert the encoding type in the file to UTF-8 and then replace the keyword inside the file from UTF-16 to UTF-8. I have the code which is working for one file but for number of files in a path its not... (2 Replies)
Discussion started by: Shruthi8818
2 Replies

9. UNIX for Advanced & Expert Users

Search and replace text

HI I have property files having content QA_server_name=10.232.54.7 QA_port_number=18000 DEV_server_name=10.235.60.73 DEV_port_number=18000 and a .jason file having content like this { "server":"localhost" "port":"17000" ------ } I will get the parameter... (1 Reply)
Discussion started by: mdtausifsh
1 Replies

10. Shell Programming and Scripting

Search for a Keyword in file and replace another keyword or add at the end of line

Hi I want to implement something like this: if( keyword1 exists) then check if(keyword2 exists in the same line) then replace keyword 2 with New_Keyword else Add New_Keyword at the end of line end if eg: Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
c1541(1)						      General Commands Manual							  c1541(1)

NAME
c1541 - a stand alone disk image maintenance program SYNOPSIS
c1541 [options] [image] DESCRIPTION
c1541 is a stand alone program that can be used for D64, D71, D81, X64 and G64 disk image file maintenance. It is part of the VICE emula- tor. c1541 can be used both in interactive and batch mode. It will start in interactive mode if no images and no options are specified or if one image is specified; when started in interactive mode, command line editing and command history are available. Each command line option for use in batch mode has an interactive mode counterpart, that is shown in parenthesis. -attach image (attach image) attach image for use. All consequent commands in interactive mode will refer to this image. -detach image (detach image) detach image from c1541. -format image (format image 'name,id') format the disk image image with the specified label. image is created if it does not exist. -delete image files... (delete files...) delete files from image -list image (list) list directory of image. -validate image (validate) validate mage. -copy image oldname1 [oldname2...] newname (copy oldname1 [oldname2...] newname) concatenate oldname1, oldname2... into newname on image (can be used to copy files). -create image dump ['descr'] (create image dump ['descr'] build image from raw dump file dump (i.e. convert from D64 to X64 file). -tape image tapeimage [files...] (tape image tapeimage [files...]) transfer files from tapeimage to image (default is all files). -read image 1541name [fsname] (read 1541name [fsname]) extract 1541name from the disk image into fsname (1541name by default) from image. -extract image (extract). extract all files from image. -write image fsname [1541name] (write fsname [1541name]) write fsname to image as 1541name (fsname by default). (works with P00 files as well). -block [drive:] [track] [sector] [disp] (block [drive:] [track] [sector] [disp]) show disk blocks in hex format. -info image ['descr'] (info ['descr']) show version information about image. When more than one command is specified in batch mode, all of them are executed in the same order they have on the command line. If you use - as a file name, it stands for stdin or stdout. SEE ALSO
VICE(1), petcat(1) AUTHORS
Teemu Rantanen <tvr@cs.hut.fi> Ettore Perazzoli <ettore@comm2000.it> Andreas Boose <boose@linux.rz.fh-hannover.de> Jouko Valta <jopi@stekt.oulu.fi> with improvements by Olaf Seibert <rhialto@mbfys.kun.nl> Gerhard Wesp <gwesp@cosy.sbg.ac.at> VICE
January 1999 c1541(1)
All times are GMT -4. The time now is 10:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy