Copy filepath along with filename at end of another file

Hi ,

Please help me out for the below problem -

I have 2 files in a directory -

$ ls -ltr
total 4
-rwx------+ 1 abc Domain Users 615 May 31 17:33 abc.txt
-rwx------+ 1 abc Domain Users   0 May 31 17:33 ll.sh

I want to write the filename of abc.txt along with the directory to the end of the line of ll.sh
So current entry in ll.sh is

command.sh 

I want it as

command.sh dir/abc.txt

Please help me out

One way:

 printf "command.sh %s/abc.txt" $(pwd) >> ll.sh

This will only work when the current directory is the same as both files: abc.txt and ll.sh

Too little information. Is the command.sh the only line in ll.sh ? In your sample directory listing it has size 0, so it can't possibly hold that (partial) line. Is there only one single other file in the directory, or, if not, do features exists to tell the target file from others? What shell/version do you use?
With a recent bash that provides extended globbing and process substitution, try

shopt -s extglob
ls !(*.sh) | cat <(tr '\n' ' ' <ll.sh) - > /tmp/TMP
mv /tmp/TMP ll.sh

or even

{ tr '\n' ' ' <ll.sh; ls !(*.sh); } > /tmp/TMP
mv /tmp/TMP ll.sh