• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 514
  • Last Modified:

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

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
iamjhkang
Asked:
iamjhkang
  • 3
  • 2
1 Solution
 
liddlerCommented:
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
 
iamjhkangAuthor Commented:
Thanks.

Do you have any examples on other symbols?
0
 
iamjhkangAuthor Commented:
Thanks a log.
0
 
iamjhkangAuthor Commented:
lot*
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now