sometimes you need a loop?

sed multilined and and manip path?

say you have some videos and subtitles and you need to rename the subtitles based on episode names.

touch {1..5}.srt e{1..5}.mkv

zsh solutions (in most of the cases)

for s v (*(on)) mv $s $v:r.srt

full pipe version

paste -d"\n" \
<( inhere '*.srt' ) \
<( inhere '*.mkv' |
    sed 's/[^.]\+$/srt/'
) | xargs -d"\n" -n2 echo mv

in dash

pipes="videos subtitles"
rm -rf $pipes
mkfifo $pipes

inhere () { find . -maxdepth 1 -name "$@" | sort -n; }

paste -d"\n" subtitles videos | xargs -d"\n" -n2 echo mv &
inhere '*.srt'           > subtitles &
inhere '*.mkv'           |
    sed 's/[^.]\+$/srt/' > videos

rm $pipes

reading from pipe is important

ifs=: me=`{getent passwd mc}
echo $me(1)

# zsh ♡
getent passwd mc |
  IFS=: read login _ uid gid gecos home shell

multiredirections should work

cat -n  <<\SRT <<\W
A
B
SRT
C
D
W

rc miss

pas de variable expansion

makefile help rule:
help:
    @printf "%s\n" \
    "this is it" \
    "this is it" \
    "this is it" \
    "this is it"

base=a
base+=haha

a=(
    a
    b
)

should be a=( a b )

tools

prototype a new shell using raku?

rash. interesting since the 4th episode https://raku-musings.com/rash4.html