Visit Our UNIX and Linux User Community


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

Previous Thread | Next Thread
Test Your Knowledge in Computers #398
Difficulty: Medium
HP-UX offers operating system-level virtualization features such as hardware partitions, isolated OS virtual partitions on cell-based servers, and HP Integrity Virtual Machines (HPVM) on all Integrity servers.
True or False?

Featured Tech Videos