Solved

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

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.

747 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

10 Experts available now in Live!

Get 1:1 Help Now