\begin{center}
\begin{tabular}{ |c|c|c| }
\hline
\multicolumn{3}{|c|}{\textbf{Cycle Number and Phase}} \\
\hline
t & $ \phi $ & I \\
\hline
6911.68158278 & 0.6843291408376899 & -1
6911.69533917 & 0.6966511591836024 & -1
6911.70882358 & 0.7087295567434921 & -1
6911.7216598 & 0.7202273507382415 & -1
6911.73451918 & 0.7317458898514815 & -1
6911.74735541 & 0.7432436928038442 & -1
6911.76036523 & 0.7548969856170515 & -1
6911.77317833 & 0.7663740703219446 & -1
9046.86818608 & 0.23613219262733764 & 1912
9129.52570639 & 0.27499570945110463 & 1986
\hline
\end{tabular}
\end{center}
For a code like the one shown, I'm trying to make line breaks in each line in order to make it output as a table. There is currently no character after the "-1" or the "1912". But I wish there to be a '\\' after all of that. How do I go about doing so? I tried using the find and replace function that many tex editors have but without a character to replace, I can't seem to do so.
Also, just to clarify, this is actually a 100+ line table with ending values not always equal to -1, so I can't just replace all the -1 with '-1 \\'.


end-of-line character \\. – Bernard Sep 24 '19 at 19:49vimvisual block mode it's quite trivial... – Rmano Sep 24 '19 at 20:34\n(the newline character) and replace with\\\n. In Windows you may need to replace\r\n(carriage [r]eturn line feed, CRLF). In some editors you need to switch on a 'control characters' option with search and replace to find such characters (also for example\tfor a tab character), in other editors this is enabled by default. – Marijn Sep 25 '19 at 11:18