Solved

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

Posted on 2004-09-22
5
500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX 5.3 group password policy changes 7 27
Unix / Linux grid computing 5 148
Problem logging tar errors 11 54
Linux "time" command output redirection 16 121
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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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.

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now