/script>
[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

WHAT LANGUAGE SHOULD I LEARN FOR: I have a txt file with tens

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 35
Thread images: 4

File: 1470910641541.jpg (108KB, 750x937px) Image search: [Google]
1470910641541.jpg
108KB, 750x937px
WHAT LANGUAGE SHOULD I LEARN FOR:

I have a txt file with tens of thousands of names, what language do I use to sort the names and automatically transfer certain names to another application ?
>>
Gentoo
>>
>>56337547
bash
sort
uniq
>>
>>56337558
HAHHAHAHAHHA GOOD ONE M8EIGHTE098

>>56337560
Is there a solution for windows?
I do have a dual boot ubuntu though.

Also the names don't have a space between them but there is a character sequence that acts like a space, but I don't know how to automate that.
>>
>>56337608
I'd go with python, easy and fast
>>
Perl
>>
>>56337608
awk
>>
>>56337637
>python
>fast
I like python but it's probably the slowest of the widely used languages right now.
>>
>>56337547
Python works.
>>
>>56337766
I meant fast to write (at least for me), but otherwise you're totally right.
>>
Why wouldn't you do this in languages specifically designed for this kind of workload?

AWK or Perl.
>>
>>56337547
https://automatetheboringstuff.com/chapter8/

this should get you started
>>
French or Chinese!
>>
javascript for everywhere master race


let a = readFileSync('txt')
a.sort().filter(()=>{})
>>
>>56337879
>Python for Windows Automation
What the actual fuck?

Why would you even
>>
sort txt_file | uniq | grep pattern | another_application
>>
>>56337937
What fucking enterprise shit are you using that just accepts random fucking pipes as data input?
>>
File: reeree.jpg (13KB, 236x346px) Image search: [Google]
reeree.jpg
13KB, 236x346px
>>56337547
python. sorted me a 3k domain txt in 0.3sec

have sorted 6m databases in the past.
>>
>>56337766
When you compare speeds are you talking about trivial things like OP said or something more complex? What sort of speed difference are we talking about here?
>>
>>56338148
>>56338022
>>56337999
>>56337896
>>56337894
>>56337894
>>56337884
>>56337879
>>56337873
>>56337870
>>56337850
Also, once I sort them, I want to be able to automatically to paste them into other programs.

I mean, it's not only text sorting.
Python is best for that, right?
>>
>>56337999
Not giving a fuck whether the input stream comes from a file, stdin, pipe or your mother's cunt has been the cornerstone of UNIX philosophy since nineteen-fucking-seventies, you twat.
>>
>>56338435
>Unix philosophy
>Enterprise Software
10/10
>>
>eyebrows bleached


Fucking copy cat piece of shit i hope she fucking dies stop copying talented people and get your own style cunt
>>
>>56338446
>pulling indefinable buzzwords out of his ass
>pretending they were implied from the beginning
0/10, fuck off.
>>
>>56337547
Excel
>>
>>56338552
home sysadmin detected.

muh 6tb.
>>
>>56337608
you can use regular expressions or similar for the sequence. They exist in a shitton of languages
>>
File: pajeet.jpg (24KB, 326x310px) Image search: [Google]
pajeet.jpg
24KB, 326x310px
Indian
>>
>>56337608
cygwin
>>
File: programmingperl.png (55KB, 305x400px) Image search: [Google]
programmingperl.png
55KB, 305x400px
>>56337547
pic related
>>
Python is by far the best for what you're asking.
Disregard everyone else.
>>
>>56338293
DONE.
unique = set(sys.stdin)
unique = sorted(unique)
for item in unique:
print item
>>
>>56337547
>>56337547
>WHAT LANGUAGE SHOULD I LEARN FOR:
>automatically transfer certain names to another application ?

Care to elaborate?
>>
>>56338293
>>56337547
Define what you mean by paste into another application? Actually using the clipboard or pipe into the other program or save as another file to open in the other program?
>>
>>56337937
>sorting before finding uniques
top kek
Thread posts: 35
Thread images: 4


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.