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
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
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
Hi
How can I determine if swapping is occuring on a server.
Thanks,
Leo (2 Replies)
Discussion started by: leo
2 Replies
4. SuSE
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
fs_rxstatpeer
FS_RXSTATPEER(1) AFS Command Reference FS_RXSTATPEER(1)
NAME
fs_rxstatpeer - Manage per-peer Rx statistics collection
SYNOPSIS
fs rxstatpeer [-clear] [-disable] [-enable] [-help]
DESCRIPTION
fs rxstatpeer manipulates some of the Rx protocol counters in the OpenAFS kernel interface.
OPTIONS
-clear
Clear the Rx stats for peers in the kernel module.
-disable
Disable logging of Rx stats for peers in the kernel module.
-enable
Enable logging of Rx stats for peers in the kernel module.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
This command produces no output other than error messages.
EXAMPLES
Enable Rx Stats for peers:
% fs rxstatpeer -enable
PRIVILEGE REQUIRED
The issuer must be logged in as the local superuser root.
SEE ALSO
fs(1), fs_rxstatproc(1), rxdebug(1)
COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for
OpenAFS.
OpenAFS 2012-03-26 FS_RXSTATPEER(1)