Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone remember Primos? It had a shell-level thing called name generation which was very useful. For example, to rename a bunch of files from part1.suffix to you could say:

rename *.suffix =.+new.suffix2

That's a very simple example, it was quite powerful. The control characters were:


Which meant approximately: match 1 filename component, match all remaining components, delete one component, delete all remaining, add a component.

In conjunction with Primos wildcards you could do pretty much any useful file renaming/copying operation very conveniently.

It was much better than Unix wildcards and name generation/iteration and I'd like to find it again and use it. Has anyone seen it around?

share|improve this question

migrated from Jun 2 '12 at 8:37

This question came from our site for professional and enthusiast programmers.

Might be better on superuser... – pst Jun 2 '12 at 7:35
also look into zsh, it has some pretty powerful globbing and renaming capabilities. – Jim Deville Jun 2 '12 at 7:56
Thanks for zsh tips. Will check those. Looks like Primos has pretty much vanished. Cripes, I spent all the 80's on Primos. Greg E – Greg E Jun 14 '12 at 21:24

You must log in to answer this question.

Browse other questions tagged .