11-16-2011
Unix Builtin commands
Hi,
In unix
ls command is found in /bin/ls. Similarly where can I find built-in commands like read, set, unset commands. I found in some couple of websites saying found in bash tool set. In unix everything is considered as a type of file with path.
Please can anyone tell me where is that Bash tool set found any path to find these built-in commands. Without clearing this doubt, I could not able to skip this built-in chapter.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I am new to UNIX programming. Can you send me the links where we can find all commands and their description in UNIX.
Help in this regard is highly appreciated.
Regards,
Azaz Ali. (1 Reply)
Discussion started by: azazalis
1 Replies
3. UNIX for Dummies Questions & Answers
I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked.
Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies
4. UNIX for Dummies Questions & Answers
Hello Folks
Where can I find all the unix commands with explanations , on the internet. I am searching but most of the sites are listing a few of the important ones. PLease guide through
thanks (4 Replies)
Discussion started by: supercops
4 Replies
5. Shell Programming and Scripting
I have a text file that contains 4 million lines, each line contains 2 fields(colon as field separator). as shown:
123:444,555,666,777,888,345
233:5444,555,666,777,888,345
623:454,585,664,773,888,345
......
Here I have to split the second field(can be up to 40,000 fields) by comma into an... (14 Replies)
Discussion started by: kevintse
14 Replies
6. Shell Programming and Scripting
Hi Guys,
Happy New Year to you all!
I have a requirement to read an embedded new-line using KSH's read builtin.
Here is what I am trying to do:
run_sql "select guestid, address, email from guest" | while read id addr email
do
## Biz logic goes here
done
I can take care of any... (6 Replies)
Discussion started by: a_programmer
6 Replies
7. UNIX for Dummies Questions & Answers
I need some help with a unix command. I want to download files from a directory, this is the url of one of the files
http://www.brugmansia.us/forums/uploads/packages-0296224001353469825.jpg
And there are several hundred that start with
http://www.brugmansia.us/forums/uploads/packages-
... (1 Reply)
Discussion started by: Mary Voss
1 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I've been using zsh for a while, and was enjoying the builtin "kill" with tab completion. But since I installed "oh-my-zsh" the kill completion has stopped working. I have not edited my new ~/.zshrc file.
My ~/.oh-my-zsh/lib/completions.zsh contains the following:
zstyle... (0 Replies)
Discussion started by: nickednamed
0 Replies
9. UNIX for Dummies Questions & Answers
I'm attempting to emulate another users .zshrc file. However, I'm sort of confused on what exactly the -g argument does for the typeset builtin. Here's what he has in his .zshrc file:
typeset -ga sources
sources+="$ZSH_CONFIG/environment.zsh"
sources+="$ZSH_CONFIG/options.zsh"... (4 Replies)
Discussion started by: brandontdr
4 Replies
10. Shell Programming and Scripting
I'm adapting a BASH script to run with an absolute minimal amounts of Cygwin64 files so colleagues using Windows can use it without installing Cygwin.
I am down to the following in /bin only (replacing cut with parameter substitution eliminated all needed things in /etc)
bash.exe
cygattr-1.dll... (5 Replies)
Discussion started by: Michael Stora
5 Replies
LEARN ABOUT OPENSOLARIS
builtin
builtin(1) User Commands builtin(1)
NAME
builtin - ksh93 built-in function to add, delete, or display shell built-ins
SYNOPSIS
builtin [-ds] [-f lib] [pathname ...]
DESCRIPTION
The ksh93 builtin command adds, deletes, or displays built-in commands in the current shell environment. A built-in command executes in the
current shell process and can have side effects in the current shell. On most systems, the invocation time for built-in commands is one or
two orders of magnitude less than commands that create a separate process.
For each pathname specified, the basename of the pathname determines the name of the built-in. For each basename, the shell looks for a C
level function in the current shell whose name is determined by pre-pending b_ to the built-in name. If pathname contains a forward slash
(/), the built-in is bound to pathname. A built-in bound to a pathname is only executed if pathname is the first executable found during a
path search. Otherwise, built-ins are found prior to performing the path search.
If pathname is not specified, builtin displays the current list of built-ins, or just the special built-ins if the -s option is specified,
on standard output. The full pathname for built-ins that are bound to pathnames are displayed.
Libraries containing built-ins can be specified with the -f option. If the library contains a function named lib_init(), this function is
invoked with argument 0 when the library is loaded. The lib_init() function can load built-ins by invoking an appropriate C level function.
In this case there is no restriction on the C level function name.
The C level function is invoked with three arguments. The first two are the same as main() and the third one is a pointer.
The ksh93 builtin command cannot be invoked from a restricted shell.
OPTIONS
The following options are supported:
-d Delete each of the specified built-ins. Special built-ins cannot be deleted.
-f lib On systems with dynamic linking, load and search for built-ins in the shared library, lib.
Libraries are searched for in $PATH and system dependent library directories. The system dependent shared library prefix or suf-
fix can be omitted. Once a library is loaded, its symbols become available for the current and subsequent invocations of builtin.
Multiple libraries can be specified with separate invocations of builtin. Libraries are searched in the reverse order in which
they are specified.
-s Display only the special built-ins.
OPERANDS
The following operands are supported:
pathname Specifies the pathname. The basename of the pathname determines the name of the built-in.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
EXAMPLES
Example 1 Loading a builtin Command
The following example loads a builtin command mycmd from the library libfoo.so:
example% builtin -f foo mycmd
AUTHORS
David Korn, dgk@research.att.com
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Uncommitted |
+-----------------------------+-----------------------------+
SEE ALSO
ksh93(1), whence(1), attributes(5)
SunOS 5.11 1 May 2007 builtin(1)