How to list every word?

Cappuccino

Diamond Member
Feb 27, 2013
4,027
726
126
Hi sorry I don't know where to post this but w/e

Basically how do I list every word? For example I want to copy and paste this for example I copy and paste this http://gyazo.com/bce9a96cf72fb5c208079b9862184491
and when I paste it looks like this http://gyazo.com/7c53e04a9bd7092502515e2ecb77ffbd
BUT I want every word to be in list form like this
http://gyazo.com/7940213844e8a2650120e182426b8010

How do I copy something and paste it but in single words underneath each other? I really appreciate the help
I hope you understand what I mean.
 

olds

Elite Member
Mar 3, 2000
50,061
720
126
Paste into word with narrow margins. But there will still be a lot of editing.
 

sdifox

No Lifer
Sep 30, 2005
96,217
15,787
126
Just past into a text editor that allows you to replace space with line return
 

gorcorps

aka Brandon
Jul 18, 2004
30,740
452
126
Paste into Word (don't think it works with another text editor)

Open find/replace, and replace " " (space) with "^l" which is a special code to force a line break

pay me 500 dollaridoos
 

Rakehellion

Lifer
Jan 15, 2013
12,182
35
91
Paste into Word (don't think it works with another text editor)

Open find/replace, and replace " " (space) with "^l" which is a special code to force a line break

pay me 500 dollaridoos

Pretty much every text editor has search and replace now.
 

sdifox

No Lifer
Sep 30, 2005
96,217
15,787
126
can you show me an example? are there any YT tutorial? and do you know how to use this? http://textmechanic.com/Find-and-Replace-Text.html
;_;

not on my pc right now but try this.

open word pad
type in "1 2 3" without the quotes
search and replace, search for space and in replace hold down alt, type 13 from the numpad, then release alt.

that should put carriage return in the replace.


give that a shot.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,284
3,905
75
I could give you some ViM commands.

Code:
:%s/[^a-zA-Z]/ /g
:%s/  */\r/g

If you were on Linux you could add:

Code:
:!sort -u

But ViM is likely to frustrate you. It's a modal text editor.
 

videogames101

Diamond Member
Aug 24, 2005
6,777
19
81
Run this from a unix terminal:

perl -p -i.bak -e "s/ /\n/g" filename

You're question is an example of why lots of people who work with computers prefer unix for productivity.

"s/a/b/g" is a global regular expression which replaces all instances of "a" with "b", in this case " "(space) with "\n"(newline). Perl can interpret and perform this in one line if you use a few flags, -p and -e with -i.bak creating a backup of the original file in case you write a bad regex.

If you're stuck with windows, use a text editor with "find and replace". Although I'm not sure which programs can add newlines.
 
Last edited:

Belegost

Golden Member
Feb 20, 2001
1,807
19
81
Run this from a unix terminal:

perl -p -i.bak -e "s/ /\n/g" filename

You're question is an example of why lots of people who work with computers prefer unix for productivity.

"s/a/b/g" is a global regular expression which replaces all instances of "a" with "b", in this case " "(space) with "\n"(newline). Perl can interpret and perform this in one line if you use a few flags, -p and -e with -i.bak creating a backup of the original file in case you write a bad regex.

If you're stuck with windows, use a text editor with "find and replace". Although I'm not sure which programs can add newlines.

The perl expression works in windows with ActivePerl just fine though it needs to be formatted slightly different.

Install ActivePerl, open the folder with the file in a command window and use:
"<path to Perl>\Perl -p -i.bak -e "s/ / \n /g" <filename>

For some reason the windows command line doesn't like the /\n/
 

edro

Lifer
Apr 5, 2002
24,328
68
91
I'm sure there is a simple way to do it with a .bat file.
I remember doing massive file renaming and txt file routines with simple 1-2 line BAT files.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |