11-27-2008
ok!
I didn't understood verry much but:
I need a script that starts whit
" #!/bin/bash
read number
......
echo $reversenumber "
something like this.
And please explain the commands.Thank you.
10 More Discussions You Might Find Interesting
1. IP Networking
hello
i would like to get a server so i may post websites on the web
do i have to pay a lot of money to use someone else's server or is there a way to turn a computer into a basic server
please help
i am trying to find the most inexpensive way to get my own domain up on the web
if this is... (1 Reply)
Discussion started by: skistar
1 Replies
2. Programming
i am new to the programing enviroment
i know html and some of cgi
i would like to know how to creat programs
i know nothing!!!!!!!!!!!!!
what do i need to get started
where can i learn the language
what language do i need to learn
i tried scheme http://www.htdp.com
it did not work out well... (9 Replies)
Discussion started by: skistar
9 Replies
3. UNIX for Dummies Questions & Answers
hi i need some help on command grep and pipe
but the man grep and man pipe doesn't help me much
is there any site show more detail help on all the unix command?? (1 Reply)
Discussion started by: goodman
1 Replies
4. UNIX for Dummies Questions & Answers
I know I'm jsut a newbie, I'm setting up a 1.3 ghz dell as a server. I have experiance using Windows for a webserver, and I was jsut woundering if I would have great difficulty using Unix.
is there there like netscape for internet?
is there like word?
can you listen to Mp3s?
can someone... (4 Replies)
Discussion started by: Special K
4 Replies
5. UNIX Desktop Questions & Answers
Hi,
I am interested in learning unix and would like some advice on how I would start to learn unix.
Therefore,
What would be a good (free) unix distribution to install?
Would it be better to invest in a packaged Linux distribution (redhat etc) and get the feel for unix this way?
Are... (4 Replies)
Discussion started by: wolf2
4 Replies
6. UNIX for Dummies Questions & Answers
Hey all. I am a MS person that is looking to get into real computing for a change. I have seen a few different references to "UNIX Essentials and Core" DVD in different newbie threads and a quick intraweb search on Google only comes up with links to this forum and an Amazon review.
Does anyone... (3 Replies)
Discussion started by: cfjohnsn
3 Replies
7. Solaris
Hello Guys,
I just join the unix world today, I had my first lesson on unix today. So expect so much questions from me the next time I log in.
Thanks (3 Replies)
Discussion started by: Micko
3 Replies
8. UNIX for Dummies Questions & Answers
Hello everyone,
Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware.
I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies
9. Shell Programming and Scripting
Hello everyone,
I am having to do a lot of perl scripting these days and I am learning a lot.
I have this problem
I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files..
there is folder1\folder2\*.gz
and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies
10. Shell Programming and Scripting
Hi,
I am new to programming and also to perl..But i know 'perl' can come to my rescue, But I am stuck at many places and need help..any small help is much appreciated... below is the description of what i intend to acheive with my script.
I have a files named in this format... (13 Replies)
Discussion started by: xytiz
13 Replies
WHICH(1) General Commands Manual WHICH(1)
NAME
which - shows the full path of (shell) commands.
SYNOPSIS
which [options] [--] programname [...]
DESCRIPTION
Which takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been exe-
cuted when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories
listed in the environment variable PATH using the same algorithm as bash(1).
This man page is generated from the file which.texinfo.
OPTIONS
--all, -a
Print all matching executables in PATH, not just the first.
--read-alias, -i
Read aliases from stdin, reporting matching ones on stdout. This is useful in combination with using an alias for which itself. For
example
alias which='alias | which -i'.
--skip-alias
Ignore option `--read-alias', if any. This is useful to explicity search for normal binaries, while using the `--read-alias' option in
an alias or function for which.
--read-functions
Read shell function definitions from stdin, reporting matching ones on stdout. This is useful in combination with using a shell func-
tion for which itself. For example:
which() { declare -f | which --read-functions $@ }
export -f which
--skip-functions
Ignore option `--read-functions', if any. This is useful to explicity search for normal binaries, while using the `--read-functions'
option in an alias or function for which.
--skip-dot
Skip directories in PATH that start with a dot.
--skip-tilde
Skip directories in PATH that start with a tilde and executables which reside in the HOME directory.
--show-dot
If a directory in PATH starts with a dot and a matching executable was found for that path, then print "./programname" rather than the
full path.
--show-tilde
Output a tilde when a directory matches the HOME directory. This option is ignored when which is invoked as root.
--tty-only
Stop processing options on the right if not on tty.
--version,-v,-V
Print version information on standard output then exit successfully.
--help
Print usage information on standard output then exit successfully.
RETURN VALUE
Which returns the number of failed arguments, or -1 when no `programname' was given.
EXAMPLE
The recommended way to use this utility is by adding an alias (C shell) or shell function (Bourne shell) for which like the following:
[ba]sh:
which ()
{
(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
export -f which
[t]csh:
alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
This will print the readable ~/ and ./ when starting which from your prompt, while still printing the full path when used from a script:
> which q2
~/bin/q2
> echo `which q2`
/home/carlo/bin/q2
BUGS
The HOME directory is determined by looking for the HOME environment variable, which aborts when this variable doesn't exist. Which will
consider two equivalent directories to be different when one of them contains a path with a symbolic link.
AUTHOR
Carlo Wood <carlo@gnu.org>
SEE ALSO
bash(1)
WHICH(1)