Скажем, у меня есть текстовый файл test.txt в диске C.Разделить строки на слова, а затем сохранить как новый файл
On the face of things, we seem to be merely talking about text-based files, containing only
the letters of the English Alphabet (and the occasional punctuation mark).
On deeper inspection, of course, this isn't quite the case. What this site
offers is a glimpse into the history of writers and artists bound by the 128
characters that the American Standard Code for Information Interchange (ASCII)
allowed them. The focus is on mid-1980's textfiles and the world as it was then,
but even these files are sometime retooled 1960s and 1970s works, and offshoots
of this culture exist to this day.
Я хочу разбить все строки на слова, а затем сохранить их как новый файл. В новом файле каждая строка содержит только одно слово.
Таким образом, новый файл будет:
On
the
face
of
things
we
seem
to
....
Ограничитель представляет собой белое пространство и пропустите все знаки препинания.
Сделали вы какие-либо attmpt, чтобы решить эту проблему самостоятельно? Можете ли вы поделиться тем, что вы пробовали, и каковы были результаты? – mjolinor
Я не силен на powershell, я использовал C#, но код не кратким. –