結果 : write a shell script to implement the filter commands