Function return string in a shell script - Programming On Unix

Users browsing this thread: 1 Guest(s)
xero
Long time nixers
i'm personally a fan of backticks (it's POSIX DAMN IT!) e.g.

Code:
#!/bin/sh

dirs=`ls -d */`
for dir in $dirs
do
  echo $dir
done


Messages In This Thread
RE: Function return string in a shell script - by xero - 10-08-2015, 02:57 PM