Solved

!

Posted on 1998-02-19
4
219 Views
Last Modified: 2011-09-20
UNIXer,

What is the usage of "!" ??????

Andrew
0
Comment
Question by:andrewyu
4 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2008822
In what context?
0
 

Accepted Solution

by:
rams021898 earned 0 total points
ID: 2008823
a) In the sed utility, the "!" is used to match all lines not cvoered in the address.

b) In the awk utility, the "!" is the negation operator.

c) When you type "history", you will get your history list of commands.  Typing "!" and a number will execute that specific command.

or even

d)In ftp, the "!" command tells ftp that you want to run a shell comman on your local host (like "!ls").

I think that's most, if not all of its uses.

Hope this helped....
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2008824
In a couple of apps (rams still mentioned ftp) it is the shell escape (ex, ed, vi, etc.).
rams, in c) you asume csh, tcsh or something similar ;-)

0
 
LVL 3

Expert Comment

by:braveheart
ID: 2008825
! is also often a history operator in debuggers and similar applications. In the csh, it is also a negation operator. I'll bet that we haven't exhausted all the possibilities yet.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question