Ksh help ...

Discussion in 'Programming' started by overdriven, Nov 11, 2005.

  1. #1
    I new to this company, where they use ksh. What changes would have to be made to the following bash script to make it work in ksh. I am by no means a programmer.

    #!/bin/bsh
    for file in $(find . -type f -name '*\.txt')
    do
    cat $file |sed "s/text-to-replace/replacementtext/g" > $file.new
    mv $file.new $file
    done
     
    overdriven, Nov 11, 2005 IP