I have written a script to find out the current processes running on the system with their project name.But after executing script i m getting too many line with status code = 0 as output.Can anyone please help me on this i am new to scripting.

```
 #!/bin/bash
 dsjob -lprojects >ProjectName.txt   #Fetching the datastage project name running on the             server                  

 ps -ef | grep DSD.RUN | cut -d" " -f21 > Currentjoblog.txt  #this will contains the     current running job on the server

 for i in $(< ProjectName.txt);do
 dsjob -ljobs $i > $i.txt 
 for j in $(< $i.txt);do
 cat $Currentjoblog.txt | while read LINE
 do
 if [ x$j == x$LINE ] ;then
  echo "$i-------$LINE"
 fi
 done <"$CurrentJoblog.txt"
 done
 done

```