#!/bin/bash filename="cun.txt" exec_str="grep 1_09000871345 $filename | grep null" echo ${exec_str} |bash