Solved

!

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

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

Andrew
0
Comment
Question by:andrewyu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

733 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