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
american-english-small
american-english-small(5) Users' Manual american-english-small(5)
NAME
american-english-small - a list of English words
DESCRIPTION
/usr/share/dict/american-english-small is an ASCII file which contains an alphabetic list of words, one per line.
FILES
There may be any number of word lists in /usr/share/dict/. /etc/dictionaries-common/words is a symbolic link to the currently-chosen
/usr/share/dict/<language> file. /usr/share/dict/words is a symbolic link to /etc/dictionaries-common/words, and is the name by which
other software should refer to the system word list. See select-default-wordlist(8) for more information, and/or to change the currently-
chosen word list.
The directory /usr/share/dict can contain word lists for many languages, with name of the language in English, e.g., /usr/share/dict/french
and /usr/share/dict/danish contain respectively lists of French and Danish words if they exist. Such lists should be coded using the ISO
8859-1 character set encoding.
SEE ALSO
ispell(1), select-default-wordlist(8), and the Filesystem Hierarchy Standard.
HISTORY
The words lists are not specific, and may be generated from any number of sources.
The system word list used to be /usr/dict/words. For compatibility, software should check that location if /usr/share/dict/words does not
exist.
AUTHOR
Word lists are collected and maintained by various authors. The Debian English word lists are built from the SCOWL (Spell- Checker Ori-
ented Word Lists) package, whose upstream editor is Kevin Atkinson <kevina@users.sourceforge.net>.
Debian 16 June 2003 american-english-small(5)