English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

This should work
% sh
sh-2.05b$ a=`ls`
sh-2.05b$ echo $a
a.c a.out bin conf data env sql src templates upgrade

Putting a command (like ls) in backticks and assigning the same to a variable (like a) lets you store output in a variable for a shell script

2006-06-27 19:53:03 · answer #1 · answered by Neil 5 · 0 0

fedest.com, questions and answers