1

I could do it long way i.e

cat hi.txt | grep 'important url' > imurl
cat hi.txt | grep -v 'not important url' > imnoturl
cat hi.txt | otherprogram1
cat hi.txt | otherprogramN

However, is there anycommand that allows me to do it in one line. Just curiosity not a neccessity. Like: cat hi.txt | someprogram -p1 ' grep "important url" > imurl ' -p2 ' grep -v "not important url" > imnoturl ' -p3 ' other task ' -pn ''

Edit: I want to merge this two:

cat $fdns_w1 | pigz -dc | fgrep ".$1" | awk -F 'name":"' '{print $2}' | awk -F '","type' '{print $1}' | sort -u
cat $fdns_w1 | pigz -dc | fgrep ".$1" | awk -F 'value":"' '{print $2}' | awk -F '"}' '{print $1}' | sort -u     
Machine Yadav
  • 189
  • 1
  • 3
  • 15

0 Answers0