Using Aliases in a script

Hi all,

I have and alias set in .profile like
alias ll='ls -la'

I am writing a shell script in which i am using "ll" but it gives command not found . Can anyone please tell me how source aliases in the script we write do i need to define it again in every script i write is there any oher way to do this

Here is ex of what i am trying to do

#!/bin/sh
ll | grep -i firstar | awk '{print $3}'

Thanks,
Firestar

Aliases arent passed from shell to shell (The #!/bin/sh at the top of your script starts a new shell). The only way to keep the aliases is if you "source" the script. I believe this is the same with shell functions.