Solved

meaning of symbols like grave, !, @, ^,&,{}, \(back slash) etc.

Posted on 2004-09-22
5
501 Views
Last Modified: 2013-12-27
What's the meaning of symbols like grave, !, @, ^,&,{}, \(back slash) etc?

for example in man find page, {} means current pathname.

does current pathname mean path + filename?

Thanks.
0
Comment
Question by:iamjhkang
  • 3
  • 2
5 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 12130999
These symbols (called metacharacters) mean slightly different things depending on which shell you are using, but generally
`` execute the command in the back ticks
'' hard quotes (ignore any metacharacter)
"" soft quotes used for spaces
& run in background
! not
\ escape

in the find command you mention {} means path and filename, so
find /tmp -name "*.tmp" -exec rm {} \;
lists allof the .tmp file in the tmp directory and passes them to rm and put them all on one line (escapes the ;)
so the rm command would look like
rm 1.tmp; rm 2.tmp ; rm 3.tmp
etc
0
 
LVL 1

Author Comment

by:iamjhkang
ID: 12131433
Thanks.

Do you have any examples on other symbols?
0
 
LVL 18

Accepted Solution

by:
liddler earned 125 total points
ID: 12131560
0
 
LVL 1

Author Comment

by:iamjhkang
ID: 12138959
Thanks a log.
0
 
LVL 1

Author Comment

by:iamjhkang
ID: 12138963
lot*
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX  NFS  question 1 138
how to monitor remote shell execution on linux 9 100
auto mounter on solaris 1 60
Showing a username in UNIX and using that name in the script 4 35
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

822 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