Tuesday, March 5, 2013

How could you execute command stored in a string or variable in Shell Scripting?

#!/bin/bash

CMD="ls -lrt"
eval $CMD

No comments :