Title: a way to put contents of variable at command prompt and pip it to some other command

Hi

i was trying to do something like

@data = "`ls" -ltr ` ;

< do some operation check whether ls command actually worked>

now i want to pass the contents of "data" thru unix commands like egrep and sort


so in all operation will be like

ls -ltr | grep -v total | sort +8

but making sure that ls command actually worked


any help


Thanx
Manish

Reply via email to