unix command

   3452   3   1
User Avatar
Member
345 posts
Joined:
Offline
Hi there,

Could someone explain me please why while using unix command for example:

unix mkdir `$OS`

houdini creates this directory, but when I want to save $OS in the file with:

unix echo `$OS` ‘> test.txt’

doesn't…


Although:
unix echo “test” ‘>test.txt’

does.


Thanks for any help
kuba
User Avatar
Member
345 posts
Joined:
Offline
aha - that is semi-solution

The workaround for storing names is to create a new variable (in settings>aliases and variables) and call this in the script.
User Avatar
Member
2199 posts
Joined: July 2005
Offline
have you tried just doing

echo $OS > test.txt

without the unix bit
The trick is finding just the right hammer for every screw
User Avatar
Member
345 posts
Joined:
Offline


Big thanks Simon!

kuba
  • Quick Links