Originally Posted by shivamkalra
Hello everyone, I'm new to Linux. I'm trying to edit the bash_profile but I'm getting this error.
"/.bash_profile: line 46: syntax error: unexpected end of the file"
Here is my bash_profile. Any help would be appreciated.
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
# Get the InfoSphere Stream Support
if [ -f /opt/ibm/InfoSphereStreams/bin/streamsprofile.sh ]; then
# The following three lines have been added by UDB DB2.
if [ -f /home/db2inst1/sqllib/db2profile ]; then
# export STREAMS_ADAPTERS_ODBC_DB2=true
# Add Collabnet SVN
# Java environment variables
# Apache Ant Environment variables
# eclipse specific variables
# User specific environment and startup programs
Ok...try deleting line 46 and see what happens. If there are characters on that line, insert a line ABOVE the existing line 46, and RETYPE THAT LINE MANUALLY, then delete the original. Might have some garbage on that line from a different editor or some corruption.