@Word from Lines with Pipes

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
May 29, 2011
17
0
Seattle
| One way is to use SETDOS /X to disable special handling of some characters. SETDOS /X-6 will disable redirection.

I tried this and it looks likes it is working great. Thanks for the solution. This problem confounded me for ages. Hence the batch file should look like that:

copy http://jpsoft.com/forums/ test.txt
SETDOS /X-6
Echo %@Word[0,%@Line[Test.txt,0]]


| Here's another possible approach:
http://www.unm.edu/~cdye/plugins/safechars.html

Thanks also for this great tip.

Tony Tschanz
 
Similar threads
Thread starter Title Forum Replies Date
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
dcantor @WORD vs @FIELD in v 22 Support 3
rps How to? @word help Support 6
J Documentation New help system: "skip word list" Support 11
Joe Caverly Word Count using TPIPE Support 10
vefatica @WORD[1-2,...] ? Support 2
Stefano Piccardi TPIPE and word to text conversion Support 4
G WAD PDIR @IF bug, @WORD bug Support 8
M What can I do to "word around" this problem? Support 8
vefatica @WORD[], quoted string? Support 8
R A problem using find in list when word wrap? Support 2
old coot Spurious errors (triggered by "for" construct?) when adding/removing "echo" lines Support 1
vefatica Continued lines (^) in a library routine? Support 5
R Lines between COMMENT & ENDCOMMENT not ignored Support 7
A TCMD - Dir Command puts out blank lines? Support 16
T FFind - can we display n number of lines after the find? Support 2
T WAD Difference between TCC and CMD in handling multi-command lines Support 6
JohnQSmith Weird DIR output (missing lines) Support 1
fpefpe Documentation Comment lines? Support 2
nickles Fixed Executing long command lines in a batch generates file name errors Support 16
B %@lines doesn't count last line without cr/lf at eof Support 1
nikbackm How to? Find duplicate lines in text file Support 0
S Documentation HELP nit: @LINES Support 5
B Select and run lines from Command Input panel? Support 1
D WAD New envars for @LINES are not hidden Support 8
T Documentation @LINE[CON,n] @LINES[CON] not documented (bug?) Support 4
M How to? Parsing lines containing double quotes... Support 3
Stefano Piccardi echoerr truncates long lines Support 9
M Just an out-of-curiosity question the List command vs. the @Lines function... Support 13
samintz How to? Pull out multiple matching lines Support 5
W Copy+Paste without breaking long lines as default? Support 1
L "for" in multiple lines Support 2
vefatica @LINES, long lines, TCC disappears Support 7
D Blank lines in jpstree.idx Support 3
vefatica @LINES[]? Support 1
J Extra blank lines during paste Support 6
vefatica How many lines are in this file? Support 17
nikbackm Trim last N lines from a file Support 6
T How do you echo lines with special characters to file? Support 4
B @lines: first line in the file is numbered 1 Support 0
R Reading an Unicode file with more than 8191 lines Support 1
Joe Caverly LIBRARY and Pipes Support 2
vefatica Pipes ... not quite right? Support 21
vefatica Tmp files from in-process pipes not deleted Support 6
vefatica BTMs and pipes ...? Support 2
vefatica Yipes, pipes! Support 4
vefatica ON ERROR and pipes? Support 8
vefatica Pipes and @CONSOLEB Support 5
vefatica SETLOCAL ... ALIAS ... pipes Support 2
P Can't disable internal tar, at least in pipes Support 3

Similar threads