redirect output of a command to a variable in a shell script (Page 1) / Files and Directories / UNIX

redirect output of a command to a variable in a shell script (Page 1) / Files and Directories / UNIX

瀏覽:1158
日期:2025-04-30
can we redirect output of a command to a variable in a shell script the following are the commands used set var1 = " " basename test.tif.gz .gz > var1 or the other way set the variable from the file basename test.tif.gz .gz > outputfile...看更多