appending string is not working in loop
outside of loop itw working fine, but when i put in loop its not working.
please look into this code and suggest me how to do this.
supplierCode.txt
---------------
UGEN
SLAND
CEL
here is my script
-------------------
#!/bin/bash
SuppFile=/home/krishnaveni/scripts/supplierCode.txt
file1=log
filename=$file1".txt" #echo $filename # its working fine
exec 0<$SuppFile
while read LINE
do
echo $LINE
suppProfileName=$LINE"_sftp.profile"
echo $suppProfileName
done
----------------------
Here output is
UGEN
_sftp.profile
SLAND
_sftp.profile
CEL
_sftp.profile
i dont know why its not working
i tried with commands which you provided me
still its giving output
_sftp.profile
_sftp.profile
_sftp.profile
i tried with
suppProfileName=`echo $LINE"_sftp.profile"`
echo $suppProfileName
and
suppProfileName=`echo ${LINE}"_sftp.profile"`
echo $suppProfileName
no use what to do now, can i know is there any problem with my script.
Can you tell me how to remove hidden values
When i open this txt file i couldnt see it directly
is there any command to remove hidden characters
Please let me know.