Piping and Redirection
1.Redirect
Standard Input (STDIN)
Data fed into the program
Standard Output (STDOUT)
Output from the program
Standard Error (STDERR)
Error messages (defaults to)
Type Standard
Standard Input 0 ( STDIN )
Standard Output 1 ( STDOUT )
Standard Error 2 ( STDERR )

Redirecting to an Existing File
In Case Redirect Output , U Can Using
>Operator To Store Or Redirect Output In File

Redirecting from a File
Redirecting to a New File
In Case Insert In File Not Use Override In Case Using Just
>U Can Use>>To Insert In File , And Save The Old Value

Redirecting STDERR
in Case Passing STRDINT Standard Input Using
<

2.Piping

Return Result From 1st Function Or Output And Passing As A Value To 2nd Tool Or Function
teeCommand Using To Show Result And Store In File , U Can Append In File Because IF U Use Normal Use Delete Old Data, U Can Use Switch-aTo Appendls | tee -a
And U Can Using Other
xargsTo Control Result And Execute Same Actions

Last updated