Search Results

Search: Posts Made By: Scrutinizer
3,374
Posted By Scrutinizer
So there are two header lines. In that case you...
So there are two header lines. In that case you could modify my suggestion like this:
{
read; read # skip header lines
3,374
Posted By Scrutinizer
Try something like this: { read ...
Try something like this:

{
read # skip header line
while read SVM CIFS_SHARE PATH_NAME
do
if [ -n "$SVM" ]; then # if $SVM is not empty, i.e. the line...
3,374
Posted By Scrutinizer
Try something like: while read SVM CIFS_SHARE...
Try something like:
while read SVM CIFS_SHARE PATH_NAME
do
echo "vserver cifs share create -vserver ${SVM} -share-name ${CIFS_SHARE} -path '${PATH_NAME}'"
done < $OUTFILE2 > $SCRIPT



--...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy