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

Re: Segregating a Global Alias



Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote in
news:CAH+w=7baCBR0KK+Uvhu8D53CPsVNvq4YSVsrbb35H1ReCHQZAA@xxxxxxxxxxxxxx: 


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

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



-- 
zzapper
https://twitter.com/dailyzshtip



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