Need some help here!!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need some help here!!
# 1  
Old 10-24-2007
Need some help here!!

Hello, I am trying to get this script to run.

#!bin/sh

if [ /home/student/998/81/29 ]; then cd /home/student/998/81/29 mkdir 9988129 fi

The problem I am encountering is when I keep it all on a single line. If I break up the script on new lines it works fine. Here is the catch this exports from our accounts database so I have little control of the structure. It exports it all in a single line. If anyone can help I would greatly appreciate it.

Thank You,
JW
# 2  
Old 10-24-2007
if [ -d /home/student/998/81/29 ]; then cd /home/student/998/81/29; mkdir 9988129; fi
# 3  
Old 10-25-2007
It worked perfect.

Thanks Porter
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question