[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

!

Posted on 1998-02-19
4
Medium Priority
?
250 Views
Last Modified: 2011-09-20
UNIXer,

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

Andrew
0
Comment
Question by:andrewyu
4 Comments
 
LVL 85

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

834 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