Powershell for text manipulation.

Powershell is extremely useful for text manipulation in limited Windows environments, due to its access to .NET classes. Following is the beginning of a page of one liners for manipulation of content in PS.

Get-Content myfile.txt | %{ ([regex] "some\s+regex").Matches($_)|%{$_.value} }

The above template creates a regex object, Matches each line of content against the pattern, and feeds it back to $_.value to extract the text.

The |%{} loop and abstraction via bracketing really compose the major grammatical structure of PSh one liners.

Welcome to Imaginal Realms

Welcome to my little corner of the web.

Why Imaginal Realms?

The name was originally the tentative title of a self run business for web development/graphic design I originally intended on setting up a long time ago. However, it eventually simply become a portal for some of my writings/artwork.

The term designates the locus of creativity and the creative imagination (in the sense of "imagination" as an actual formative force), a term largely popularized by Henry Corbin in his Islamic/Sufi studies, coming originally from the Latin imaginalis "image, likeness, idea, echo, etc...", hence its use for a site where creative ideas are developed.

Site Content

Originally this site held much more content, however much of it has been pulled for future rearrangement of the material. For now theres just some artwork. Later other content will return.

Syndicate content