Bash ~ Perl ~ Python ~ Batch ~ Ruby
Monday, 6 January 2014
Creating path variable in linux
#!/ bin/bash
for i in *
do
[ -d "$i" ] && TEST=$TEST:$i
done
TEST=${TEST#:}
export TEST
echo TEST=$TEST
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment