Hello,
I'm writing a script to create a filesystem layout on an AIX 5.1L Regatta using LVM. In this script I'm using a "for" loop to 'cat' a file and retrieve the filesystem name from the fourth field. The file I'm reading from looks like this:
VGName LVName LogName FileSystem LVSize
My forloop for the Filesystem looks like this:
for l in `cat layout.txt |cut -d" " -f4`
do FSN=$l
export $FSN
done
When I run the script it errors saying:
./Srwds.ksh[24]: /u02_01: is not an identifier
I know the slash (/) is the problem because if I remove them I do not get an error unless the filesystem I'm creating is something like opt/apps/somefile.
My question is how do I get around this? I need to create filesystems with absolute pathnames, and there are so many to create that putting them in a file and running the script is the best way to do it. Thanks for any and all suggestions. An infinite number of monkey typing at an infinite number of keyboards will eventually populate the internet.
I'm writing a script to create a filesystem layout on an AIX 5.1L Regatta using LVM. In this script I'm using a "for" loop to 'cat' a file and retrieve the filesystem name from the fourth field. The file I'm reading from looks like this:
VGName LVName LogName FileSystem LVSize
My forloop for the Filesystem looks like this:
for l in `cat layout.txt |cut -d" " -f4`
do FSN=$l
export $FSN
done
When I run the script it errors saying:
./Srwds.ksh[24]: /u02_01: is not an identifier
I know the slash (/) is the problem because if I remove them I do not get an error unless the filesystem I'm creating is something like opt/apps/somefile.
My question is how do I get around this? I need to create filesystems with absolute pathnames, and there are so many to create that putting them in a file and running the script is the best way to do it. Thanks for any and all suggestions. An infinite number of monkey typing at an infinite number of keyboards will eventually populate the internet.