ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

better than textmechanic

(1/2) > >>

kalos:
hello

do you know any website, or maybe create one! that will be better than textmechanic?

it has really useful tools, but it doesn't cover all the possible situations

for example, it doesn't have a function to convert a list of object1, object2, object3, into a vertical list, etc

I would also like to be able to create all the possible combinations between 2 or 3 lists of strings

etc

any idea?

thanks!

Edvard:
For the first request, not a website, but a command-line tool.

Sedw:
sed (stream editor) is a Unix utility that parses and transforms text, using a simple, compact programming language.
--- End quote ---


You want a comma-separated list transformed into a vertical list?

--- ---sed 's/, /\n/g' comma_list.txt > vert_list.txt
Sed for windows can be found here: http://gnuwin32.sourceforge.net/packages/sed.htm

The combinations of strings will have to be done as a programming exercise.  Eric Lippert, a C# compiler dev for Microsoft, has an interesting, though kinda technical, series on just such a thing which is known as Context-Free Grammar which is important in the design of programming languages.  Don't know if it'll help at all, but I couldn't do any better.
http://blogs.msdn.com/b/ericlippert/archive/2010/04/26/every-program-there-is-part-one.aspx

4wd:
In Powershell:

--- Code: PowerShell ---$a = Get-Content comma_list.txt ; $a.Split(",") >> vert_list.txt
For word permutations in Powershell, see here.

kalos:
thanks!
as for the latter? to generate all the possible combinations of two lists of strings?

kalos:
also guys, I need this to work in any pc, that's why I want it in a website and not in a script

Navigation

[0] Message Index

[#] Next page

Go to full version