[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
1 line = 1 new text file
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 11
Thread images: 2
File: 1444442060441.png (197 KB, 807x537) Image search: [Google]
1444442060441.png
197 KB, 807x537
I have a text file with hundreds of lines. I need something to automatically turn each of those lines into a new and separate text file. I'm on Windows.
>>
>>51900878
install gentoo
>>
>>51900878
>I have a text file with hundreds of lines. I need something to automatically turn each of those lines into a new and separate text file.

Easy peasy:
 split -l 1 file.txt 


>I'm on Windows.

Oh. Maybe you can use the trial edition of LineSplitter FX Pro 2015 for free on several files under 100 lines, or you can buy the full version for $12.99
>>
>>51900927
>google "LineSplitter"
>there is an open source program called GSplit
>it does what I need
Thanks!
>>
>>51900927
>>Oh. Maybe you can use the trial edition of LineSplitter FX Pro 2015 for free on several files under 100 lines, or you can buy the full version for $12.99

>being this butthurt
>what is powershell
>>
>>51900927
>implying powershell doesn't have its own string split function
>>
File: disgusting.jpg (29 KB, 499x500) Image search: [Google]
disgusting.jpg
29 KB, 499x500
>>51901043
Yeah, and it's probably as simple as creating a new String object and using some sort of FileReader.Read() to initialize it, passing it to the SplitFactory object and create one FileWriter per output.

>powershell
>>
>>51900927
couldn't he use cygwin?
>>
>>51901129
The point is anyone that would want to do this on a command line could do it easily in either shell
>>
>>51900927
This is above the usual wit on 4chan, whether I'm a winfag or not

>>51901129
>everything is java
>>
>>51901264
PowerShell is almost as verbose as Java, though.
Thread replies: 11
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.