Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re[2]: Segregating a Global Alias



zzapper wrote:
> perl -ne 's/(<\/\w+>)/$1\n/g; print' < NF > {NF}.txt     ### Doesn't
> work
> (...)
> But can anyone else trump Bart's or my attempt?

This doesn't look very sophisticated, but seems to work -- and is rather close to your original approach:

perl -ne 's/(<\/\w+>)/$1\n/g; print' < NF > $(print NF).txt

---Manuel.




Messages sorted by: Reverse Date, Date, Thread, Author