It would probably be possible to add the asterisk marker into the code to split the alias into minimal abbreviation + rest of alias, then add the latter to the former one letter at a time in a similar manner to the above.
Think this should do what you describe:
Of course for i in $(seq 0 ${#name}) can be used in place of the above for(( code for more compatibility with older shells, at the cost of some speed.
This User Gave Thanks to Chubler_XL For This Post:
Hi All,
One small request. In UNIX/LINUX we can have our own aliases in .bashrc file. My doubt is when we add a new alias and if it is tried in already opened terminals it will not work, may be it is not going to recognise. Bit when we use the same alias in new terminal it will work. I... (1 Reply)
Folks;
I know this might sound stupid, but Can i alias a web link to another web link in a UNIX server?
Let say i have a web link named http://test.new.com/wiki
Can i alias that so when i click on it or i type it in the browser address it opens but the link in the browser say something like:... (1 Reply)
HI All,
I have a small question/clarification/doubt . Does anyone know how to provide alias in the mails that come from Unix servers.
Like i have a Unix server that generates status mails every hour for a scheduled job , it sends me mails with status with the ID in from field as... (3 Replies)
hi to all members in this forums .. Nice to meet you...
i only have a questions about command utility of "dd":
for example i will type:
pico trial
this is my file.
and save it and type chmod a+x trial
can there be a way that instead of typing:
dd if=trial of=trial.copy conv=ucase... (3 Replies)
Hello,
I need to rediret the directory location at run time as:-
If I type cd /dir1/dir2 then it should take me to /dir1/dir3 at run time.
Inside dir1, both dir2 and dir3 directories are present.
Could anyone guild me over it?
Thanks
Shubham (5 Replies)
I have these mental shorthands, e.g., OPC for other people's code/children, so when a wise suggestion is ignored, I thought, pearls before swine, but the acronym PBS is already taken.
Maybe it's an inside joke? (0 Replies)
Discussion started by: DGPickett
0 Replies
LEARN ABOUT OSF1
local.users
local.users(4) Kernel Interfaces Manual local.users(4)NAME
local.users - Specifies mail recipients on the local host.
DESCRIPTION
The local.users file contains a list of user names whose mail is to be delivered to the local host and whose return address is user-
name@hostname. Entries in the local.hosts file are in addition to other local users (such as root and postmaster). See sendmail.cf(4) for
a description of other local users.
You can add entries to this file if the host is configured as a simple client and either of the following is true: The user wants their
mail delivered on this machine rather than being forwarded to the mail server. You are adding aliases to the /var/adm/sendmail/aliases
file. When the host is configured as a simple client, the alias must be added to this file and the aliases file.
A simple client is defined as a host that had the mail system configured using the MailConfig application from the System Management utili-
ties or configured using the mailsetup utility's Quick Setup menu.
The format of the file is as follows: User names are separated by blanks or new lines. Multiple user name can be specified on a line.
Blank lines are ignored. A comment mark (#) ends the line.
After modifying the local.users file, you must restart the sendmail daemon to apply the changes. Use the following command: #
/sbin/init.d/sendmail restart
EXAMPLES
root postmaster rw # A comment followed by an ignored blank line.
# Another comment. mariah # Another comment.
carey # Leading blanks are acceptable.
FILES
Specifies the path name for the file.
RELATED INFORMATION
Files: sendmail.cf(4). delim off
local.users(4)