Bash i/o redirection output to argument?

خرید بک لینک

Say I have a one liner like

command foo | mail -s "`date +%m/%d/%Y`" [email protected]

This emails me the output of command foo as the body of an email, with the date as the subject.

But I really want the output to be in the subject line after the date, not in the body.

I know there must be a simple way to accomplish this.

- - , .
.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 379 تاريخ: يکشنبه 27 تير 1395 ساعت: 17:29

صفحه بندی