In one of the lines in my shell script, I have following:
for i in `find ${DATA_DIR}/${KEYSPACE} -type d`
I have defined:
DATA_DIR=/var/lib/cassandra/data
KEYSPACE=test_keyspace
When I execute my shell script, it is giving following error:
find: '/var/lib/cassandra/data/test keyspace': No such file or directory
So,it is converting underscore(_) to space( ). There is a directory on my file system /var/lib/cassandra/data/test_keyspace
which I want to iterate over
I also tried without using variables, without any luck:
for i in `find ${DATA_DIR}/test_keyspace -type d`