set nocount on
before the select
A place for John to record his techy notes, both to refer back to when needed, and as a help for others...
set nocount on
s/^M//g
s/<TEXT>/^M/g
s/<TEXT>/\^M/g
Of course if you're on Windows using gvim the ^V^M doesn't work, it's just the same as pressing - on Windows you need to use CTRL-Q instead of CTRL-V to escape the special character on the ex command line or to do a blockwise visual selection
perl -e 'for(1..12){my $dir=sprintf("%02i ",$_);mkdir"2005/$dir"}'
printf "I have %d camel%s.\n", $n, $n == 1 ? "" : "s";
$ nisgrep username passwd.org_dir
username:ENCRYPTPASSWD:1000305537:10:User Name:/home/username:/bin/ksh:13063:1:63:14:::
$ getent passwd username
username:x:1000305537:10:User Name:/home/username:/bin/ksh
$ niscat -o '[name=username]passwd.org_dir'
Object Name : "passwd"
Directory : "org_dir.domain.com."
Owner : "username.domain.com."
Group : ""
Access Rights : ----r-----------
Time to Live : 12:0:0
Creation Time : Wed Aug 3 13:10:33 2005
Mod. Time : Fri Oct 7 10:39:27 2005
Object Type : ENTRY
Entry data of type passwd_tbl
[0] - [8 bytes] 'username'
[1] - [14 bytes] Encrypted data
[2] - [11 bytes] 'XXXXXXXXX'
[3] - [3 bytes] '10'
[4] - [14 bytes] 'User Name'
[5] - [14 bytes] '/home/username'
[6] - [9 bytes] '/bin/ksh'
[7] - [17 bytes] Encrypted data
$ ypmatch USER passwd