Closed ghost closed 1 month ago
#!/usr/bin/env bash > /tmp/buf while IFS= read -r line;do echo "$line" >> /tmp/buf echo "$line" done
превратить в
#!/bin/sh tee /tmp/buf
tee это POSIX (man 1p tee соглы :)).
tee
man 1p tee
Sometimes you don't have tee and frankly I wanted pure bash instead of shell out inefficiently.
превратить в
tee
это POSIX (man 1p tee
соглы :)).