Skip to main content
3 of 3
removed thanks, typo. formatting
Anthon
  • 81.4k
  • 42
  • 174
  • 228

Using alias in another script (ksh)

I'm writing a ksh script, and I'd like to use a command define by an alias in my .profile file, in my script. I tried this command in the folder containing my script, and it works. However, in my script, I've: [command] not found.

How can I solve this? My command just make a ls of a repository, then I'm doing in my script:

[command]| grep ... | { IFS== read -r var1 x && IFS== read -r var2 x; }
user1058398
  • 4.4k
  • 10
  • 32
  • 32