I am sure this is a newbie question, but I have searched everywhere and cannot find an answer.
My situation is that due security constraints, I cannot modify my .profile file. I have a set of fairly common things that would normally go in the .profile, like setting up alias assignments and... (2 Replies)
In ksh I thought a global variable was any variable in a script or function that did not have the typeset command. I have a global in my calling script which I increment in a function, but the value does not change in the calling script. Here is the code:
function f_open_log
{
typeset -r... (5 Replies)
Hi
Linux
Set up - alias ls='ls -l'
Then run script
#! /bin/ksh
sub()
{
ls
}
sub
Is there any way to get it working. I don't want to define alias inside of the program
Thank you (2 Replies)
Hi,
i need to create a alias in my solaris 10 , i have edited ~/.profile and added like
alias c='clear'and exit the terminal and open again and checked to see working or not but it's still not working (9 Replies)
Hi,
I have Solaris zone configured with Solaris 9 and 10.
In Solaris 10(non global), I use the command “zonename” to get whether it is global or non-global server.
For Solaris 9, what command I can use to get whether it is global or non-global server.
Regards,
Kalai :confused: (25 Replies)
Hi,
My team does not have root access however many a times my members logon to the unix server and fire the rm command mistakenly on wrong folder and later realise that they have made a mess.
The rm -i option prompts for a confirmation before actually deleting the files/folders.
I want to... (5 Replies)
I have an alias set on linux:
progs -> /home/user01/prog1.pl
the location of prog is changes to /home/user01/new/prog1.pl
so I need to modify alias, except I can not find where it is set. It is not in .bashrc or .profile, it is visible by "alias" command.
Sorry if it is trivial. (4 Replies)
Below is my code:
count=0
if
...
...
else
...
find * -prune -type d | sort -r -n | while read d; do
count=1
if ; then
echo "Count1:$count"
...
...
break 2;
fi
...
done
...
fi
echo "Count2:$count" (9 Replies)