Skip to main content

Thread: redirecting output to input of next command


i'm trying redirect output of command input of next command. not sure if i'm going right way. easy method store output of previous command in file , redirect input read file, i'm curious see if can done without writing files.

code:
code:
exec 7<&0  df <&1 | grep sda1 | awk '{ print $3, $4 }'  read used free

like this:
code:
df | grep sda1 | awk '{ print $3, $4 }'


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] redirecting output to input of next command


Ubuntu

Comments