Home > other >  Write a shell script results will be redirected to a file
Write a shell script results will be redirected to a file

Time:05-25

Perform setgrp $1 $2 $3 to $4 instructions
Have an interactive interface (y/n), after interaction
Output the contents of the corresponding

Personal writing (wrong) :, every brother please give advice or comments!!!!!
#! Bin/sh
Mess=$(echo y | setgrp $1, $2 $3 to $4)
Echo $mess & gt; Filename

Results cannot save to file filename,, help me teach
  • Related