home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / bit / listserv / ibmmain / 2361 < prev    next >
Encoding:
Text File  |  1992-10-13  |  1.4 KB  |  35 lines

  1. Newsgroups: bit.listserv.ibm-main
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!stortek!LSTC2VM.stortek.com!MCMASTER
  3. From: MCMASTER@LSTC2VM.stortek.com (Jim McMaster)
  4. Subject: Re: moving all texts in xedit file one space to the right
  5. Message-ID: <1687FABFF.MCMASTER@LSTC2VM.stortek.com>
  6. Sender: usenet@stortek.com
  7. Nntp-Posting-Host: lstc2vm.stortek.com
  8. Organization: StorageTek SW Engineering
  9. References:  <IBM-MAIN%92101215414708@VM1.CC.UAKRON.EDU>
  10. Date: Tue, 13 Oct 1992 18:13:50 GMT
  11. Lines: 22
  12.  
  13. In article <IBM-MAIN%92101215414708@VM1.CC.UAKRON.EDU>
  14. Don Tang <V1426G@TEMPLEVM.BITNET> writes:
  15.  
  16. >I am trying to find if there is any command that enable to move all texts
  17. >of each line one space to the right in an xedit file? It takes too much
  18. >time if I do it line by line in a long file.
  19. >
  20. >Thanks!
  21.  
  22. It actually takes two subcommands "SHIFT RIGHT 1" followed by
  23. "REPEAT *".  "REPEAT" only works as long as the subcommand being
  24. repeated has a zero return code, though.  If the right shift causes a
  25. character to be truncated, the return code is nonzero and REPEAT stops.
  26. This might be exactly what you want to happen...you can't lose data
  27. without knowing it.
  28.  
  29. Another way is with the prefix macro ">>".  Put ">>1" on the first line
  30. of the file and ">>" on the last, and all lines are shifted one
  31. character to the right.  You will get a message telling how many lines
  32. were truncated, but no indication which ones.
  33.  
  34. Jim McMaster
  35.