Sponsored Content
Full Discussion: Swapping in VI editor
Top Forums UNIX for Dummies Questions & Answers Swapping in VI editor Post 302328423 by Jahn on Wednesday 24th of June 2009 09:55:25 AM
Old 06-24-2009
Swapping in VI editor

Hi,

I am attempting to replace several similar words with another word in vi. Here is what I have written for the script:

3dTcat -prefix SuperBrik_4WAY_HRF ../JULY10_2007A/results2TENT/stats.JULY10_2007A+tlrc ../JULY10_2007G/results2TENT/stats.JULY10_2007G+tlrc ../JULY10_2007I/results2TENT/stats.JULY10_2007I+tlrc ../JULY11_2007F/results2TENT/stats.JULY11_2007F+tlrc ../JULY11_2007J/results2TENT/stats.JULY11_2007J+tlrc ../JULY12_2007A/results2TENT/stats.JULY12_2007A+tlrc ../JULY12_2007B/results2TENT/stats.JULY12_2007B+tlrc ../JULY12_2007I/results2TENT/stats.JULY12_2007I+tlrc ../JULY12_2007J/results2TENT/stats.JULY12_2007J+tlrc ../JUNE13_2007A/results2TENT/stats.JUNE13_2007A+tlrc ../JUNE13_2007B/results2TENT/stats.JUNE13_2007B+tlrc ../JUNE13_2007C/results2TENT/stats.JUNE13_2007C+tlrc ../JUNE13_2007E/results2TENT/stats.JUNE13_2007E+tlrc ../JUNE13_2007G/results2TENT/stats.JUNE13_2007G+tlrc ../JUNE13_2007I/results2TENT/stats.JUNE13_2007I+tlrc ../JUNE14_2007D/results2TENT/stats.JUNE14_2007D+tlrc ../JUNE14_2007H/results2TENT/stats.JUNE14_2007H+tlrc ../JUNE15_2007A/results2TENT/stats.JUNE15_2007A+tlrc


What I want to do is replace the "stats.J*+tlrc" with "displayBriks". I am familiar with using the :s/ command to find and replace several identical words, but am unsure of how to do this for a regular expression in vi. Any idea on where to start?

Thank you,

-Jahn
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Swapping questions

How can you tell how much a Solaris box is swapping? At what point do page in and page out become a problem? Here is a vmstat output. > vmstat procs memory page disk faults cpu r b w swap free re mf pi po fr de sr m0 m1 m2 m3 in sy cs us sy id... (1 Reply)
Discussion started by: 98_1LE
1 Replies

2. Filesystems, Disks and Memory

Paging and Swapping

Hi Guys: Would like to know how to check system swapping and paging and some theory on how they function. I am an oracle dba and my environment is 8171 on AIX 433. We have a 1GB of RAM on the box and I am educating myself to see how much more SGA can be accommodated on the box and what are the... (2 Replies)
Discussion started by: ST2000
2 Replies

3. UNIX for Dummies Questions & Answers

how to get swapping info

Hi How can I determine if swapping is occuring on a server. Thanks, Leo (2 Replies)
Discussion started by: leo
2 Replies

4. SuSE

Swapping

Hello! Why does my SuSE GNU/Linux machine swap? I have a Gig of ram, currently 14MBs of free RAM, 724MB - buffers and caches... That is 685MB of cached RAM, then kernel really should'nt have to swap, It should release cached memory in my thinkin... It has only swaped 3MB's but still,... (3 Replies)
Discussion started by: Esaia
3 Replies

5. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

6. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

7. UNIX for Dummies Questions & Answers

Swapping column in vi editor

is there any command in vi editor to turn this 986.000 4.026.000 775.328.625 9.319.003.000 986.000 4.036.000 775.328.625 9.318.803.000 986.000 4.046.000 775.328.625 9.318.603.000 986.000 4.056.000 775.328.625 9.318.403.000 become this... (5 Replies)
Discussion started by: muhnandap
5 Replies

8. Shell Programming and Scripting

Swapping fields

Hallo Team, This is the command that i am running : grep ",Call Forward Not Reachable" *2013* this is the output that i am getting (i did a head -10 but the files can be more than 1000) ... (8 Replies)
Discussion started by: kekanap
8 Replies

9. Solaris

Swapping

Hi Guys I am using SPARC-T4 (chipid 0, clock 2998 MHz), SunOS 5.10 Generic_150400-38 sun4v. How do I see if the server was doing some swapping like yesterday? I had a java application error with java.lang.OutOfMemoryError, now I want to check if the server was not doing some swapping at... (4 Replies)
Discussion started by: Phuti
4 Replies

10. Shell Programming and Scripting

Swapping lines

Hi there, I have a text that I'm trying to format into something more readable. However, I'm stuck in the last step. I've searched and tried things over the internet with no avail. OS: Mac After parsing the original text that I won't put here, I managed to get something like this, but this... (8 Replies)
Discussion started by: Kibou
8 Replies
TRACESUMMARY(1) 						   User Commands						   TRACESUMMARY(1)

NAME
tracesummary - output basic summary stats about a trace SYNOPSIS
tracesummary inputuri ... DESCRPTION
tracesummary provides basic summary stats about a trace. traceconvert is a shellscript wrapper around tracestats(1) LINKS
More details about tracesummary (and libtrace) can be found at http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation SEE ALSO
libtrace(3), tracemerge(1), tracesplit(1), tracesplit_dir(1), tracefilter(1), tracestats(1), tracereport(1), tracertstats(1), tracepkt- dump(1), traceanon(1), traceconvert(1), tracereplay(1), tracediff(1), traceends(1), tracetopends(1) AUTHORS
Perry Lorier <perry@cs.waikato.ac.nz> tracesummary (libtrace) October 2005 TRACESUMMARY(1)
All times are GMT -4. The time now is 08:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy