Thread: Need help. Simple Shell-script. Time > out.txt
hey there. how can make script work?
here damn peace of code.
what gotta write info running function-time external file.code:function func_x() { echo `date` sleep 1 echo `date` sleep 1 echo `date` sleep 1 } time -f %e -o t_out.txt func_x
thanx.
why using function?
can trying achieve in 1 line of [messy] commands:
if assigned variable:code:echo `date`; sleep 1; echo `date`; sleep 1; echo `date`; sleep 1
then use $function run commandscode:function=`echo `date`; sleep 1; echo `date`; sleep 1; echo `date`; sleep 1`
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [other] Need help. Simple Shell-script. Time > out.txt
Ubuntu
Comments
Post a Comment