Skip to content

How to apply find-replace to path, how to convert it to string? #3468

Answered by aborruso
aborruso asked this question in Q&A
Discussion options

You must be logged in to vote

I have it

ls *.json |  where size > 25kb | each { open $it.name | get s | insert filename $it.name } | path basename filename | str find-replace ".json" "" filename

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aborruso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant