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
passenger-memory-stats
passenger-memory-stats(8) Administration Commands passenger-memory-stats(8)
NAME
passenger-memory-stats - reports a snapshot of the Apache and Phusion Passenger memory statistcs
SYNOPSIS
passenger-memory-stats
DESCRIPTION
passenger-memory-stats allows you to easily analyze the real memory usage of Phusion Passenger and Apache.
Process inspection tools such as ps and top are useful, but they rarely show the correct memory usage. The real memory usage is usually
lower than what ps and top report.
There are many technical reasons why this is so, but an explanation is beyond the scope of this page. We refer the interested reader to
operating systems literature about virtual memory and copy-on-write.
When you run this tool the Private or private dirty RSS field shows the real memory usage of processes.
ENVIRONMENT VARIABLES
HTTPD The full filename to the Apache executable. By default, Passenger will attempt to autodetect the Apache executable. If autodetection
fails for whatever reason, then Apache processes will not be shown in the memory statistics. In that case, you may manually specify
the location to the Apache executable using this environment variable.
SEE ALSO
passenger-status(8), ps(1), top(1),
User guide at http://www.modrails.com/documentation.html
AUTHOR
Phusion Passenger is written by Phusion (http://www.phusion.nl)
"Phusion" and "Phusion Passenger" are trademarks of Hongli Lai & Ninh Bui.
This manual page was written by Neil Wilson <neil@brightbox.co.uk> for the Ubuntu project (but may be used by others).
Phusion Passenger 2.0 passenger-memory-stats(8)