Donald Mackay's Collected Hints and tips
manu-forti.jpg
 

Donald L Mackay
Hints and Tips

  clan-lyon.gif

To split a text file at delimiters e.g. Minicrib at change of letter

  1. To split a text file use the "csplit" command.
  2. In windows use a Unix emulator which has the Unix command "csplit".
  3. A good Unix emulator is "cygwin".
  4. Place the file to be split into the folder C:\cygwin64\home\yyyyyy where yyyyyy is the user name
    e.g. C:\cygwin64\home\Donald
  5. Syntax of csplit command is csplit input-file /delimiter/ {number of times}
    e.g. csplit aaa.txt /###/ {*}
  6. Output is in the form of files named:- xx01, xx02 ... xxnn.
  7. To make these files useable use a renamer to append ".txt" to file-names
    e.g:- xx01.txt, xx02.txt ... xxnn.txt




LAST UPDATED: 02 February 2018 (Bluetooth File Transfer)