Sponsored Content
Homework and Emergencies Homework & Coursework Questions VI Search and Replace problem help... Post 302546678 by yazu on Thursday 11th of August 2011 11:06:06 PM
Old 08-12-2011
Just a hint. "%" is an address for vi command to operate on. It is the whole file, but this address can be a regex (or line numbers).
You are doing very well and I don't want just to give you a solution.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

vi search & replace ... having '/' in string - problem.

I want to carry out search & replace for the paths mentioned in the file with the help of vi. 'abc/' to be replaced by 'abc/data' When I use command in vi as below - %s/abc//abc/data/g it gives me an error. How we should deal with '/' part in string for vi search & replace? ... (6 Replies)
Discussion started by: videsh77
6 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. Shell Programming and Scripting

Problem with sed (search/replace)

Hi, In a file FILE, the following lines appear : WORD 8 8 8 ANOTHERWORD blabla ... Directly in the prompt, if I type $sed '/WORD/s/8/10/g' FILE it replace the 8's by 10's in file : $cat FILE WORD 10 10 10 ANOTHERWORD blabla ... (9 Replies)
Discussion started by: tipi
9 Replies

4. Shell Programming and Scripting

awk - replace number of string length from search and replace for a serialized array

Hello, I really would appreciate some help with a bash script for some string manipulation on an SQL dump: I'd like to be able to rename "sites/WHATEVER/files" to "sites/SOMETHINGELSE/files" within the sql dump. This is quite easy with sed: sed -e... (1 Reply)
Discussion started by: otrotipo
1 Replies

5. UNIX and Linux Applications

GNU sed - Search and Replace problem

Hi, The following code loops through every file with an error extension and then loops through all XML files in that directory and replaces the target character @ with / . The problem I have is that if there is more than one occurance of @ in each individual file it doesn't replace it. Any... (2 Replies)
Discussion started by: Fishn
2 Replies

6. Shell Programming and Scripting

perl search and replace - search in first line and replance in 2nd line

Dear All, i want to search particular string and want to replance next line value. following is the test file. search string is tmp,??? ,10:1 "???" may contain any 3 character it should remain the same and next line replace with ,10:50 tmp,123 --- if match tmp,??? then... (3 Replies)
Discussion started by: arvindng
3 Replies

7. Programming

Binary Search Tree Search problem

I am writing code for a binary search tree search and when I compile it i am getting strange errors such as, " /tmp/ccJ4X8Xu.o: In function `btree::btree()': project1.cpp:(.text+0x0): multiple definition of `btree::btree()' " What does that mean exactly? tree.h #ifndef TREE_H #define... (1 Reply)
Discussion started by: meredith1990
1 Replies

8. UNIX for Dummies Questions & Answers

Search and replace problem

Hi, I am looking for bash or awk script to solve the following. Input File 1: >Min_0-t10270-RA|>Min_0-t10270-RA protein AED:0.41 eAED:0.46 QI:0|0|0|0.25|1|1|4|0|190 MIGLGFKYLDTSYFGGFCEPSEDMNKVCTMRADCCEGIEMRFHDLKLVLEDWRNFTKLST EEKRLWATPAAEDFF >Min_0-t10271-RA|>Min_0-t10271-RA protein... (5 Replies)
Discussion started by: Fahmida
5 Replies

9. Shell Programming and Scripting

Nested search in a file and replace the inner search

Hi Team, I am new to unix, please help me in this. I have a file named properties. The content of the file is : ##Mobile props east.url=https://qa.east.corp.com/prop/end west.url=https://qa.west.corp.com/prop/end south.url=https://qa.south.corp.com/prop/end... (2 Replies)
Discussion started by: tolearn
2 Replies

10. Shell Programming and Scripting

Large search replace using sed results in memory problem.

I have one big file of size 9GB (big_file.txt). This big file has sentences and paragraphs like any usual English document. I have another file consisting of replacement strings for sed to use. The file name is replace.sed and each entry in one line looks like this: s/\<shout\>/shout/g s/\<b is... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
ALTERA_ATSE(4)						   BSD Kernel Interfaces Manual 					    ALTERA_ATSE(4)

NAME
atse -- driver for the Altera Triple-Speed Ethernet MegaCore SYNOPSIS
device atse options ATSE_CFI_HACK In /boot/device.hints: hint.atse.0.at="nexus0" hint.atse.0.maddr=0x7f007000 hint.atse.0.msize=0x540 hint.atse.0.rc_irq=1 hint.atse.0.rx_maddr=0x7f007500 hint.atse.0.rx_msize=0x8 hint.atse.0.rxc_maddr=0x7f007520 hint.atse.0.rxc_msize=0x20 hint.atse.0.tx_irq=2 hint.atse.0.tx_maddr=0x7f007400 hint.atse.0.tx_msize=0x8 hint.atse.0.txc_maddr=0x7f007420 hint.atse.0.txc_msize=0x20 hint.e1000phy.0.at="miibus0" hint.e1000phy.0.phyno=0 DESCRIPTION
The atse device driver provides support for the Altera Triple-Speed Ethernet MegaCore. HARDWARE
The current version of the atse driver supports the Ethernet MegaCore as described in version 11.1 of Altera's documentation when the device is configured with internal FIFOs. MAC SELECTION
The default MAC address for each atse interface is derived from a value stored in cfi(4) flash. The value is managed by the atsectl(8) util- ity. Only a single MAC address may be stored in flash. If the address begins with the Altera prefix 00:07:ed and ends in 00 then up to 16 addresses will be derived from it by adding the unit number of the interface to the stored address. For other prefixes, the address will be assigned to atse0 and random addresses will be used for other interfaces. If the stored address is invalid, for example all zero's, multi- cast, or the default address shipped on all DE4 boards (00:07:ed:ff:ed:15) then a random address is generated when the device is attached. SEE ALSO
miibus(4), netintro(4), ifconfig(8) Triple-Speed Ethernet MegaCore Function User Guide, Altera Corporation, November 2011. HISTORY
The atse device driver first appeared in FreeBSD 10.0. AUTHORS
The atse device driver and this manual page were developed by SRI International and the University of Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) (``CTSRD''), as part of the DARPA CRASH research programme. This device driver was written by Bjoern A. Zeeb. BUGS
The atse driver only supports a single configuration of the MegaCore as installed on the Terasic Technologies Altera DE4 Development and Edu- cation Board. Only gigabit Ethernet speeds are currently supported. BSD
May 21, 2014 BSD
All times are GMT -4. The time now is 04:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy