Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the different between > and >!

Status
Not open for further replies.

sedawk

Programmer
Feb 5, 2002
247
US
Hi,

> is conventional output pipe. >! basically has the same function. But what is the difference between them?
 
What shell and version are you using?

I don't see anything like that in the Bash manual.

I do see a Bash [tt]>|[/tt] operator, which basically overrides the noclobber setting. That is, when noclobber is on, [tt]>|[/tt] will write over the contents of an already existing file while [tt]>[/tt] will refuse to.
 
My coworker solved this: >! is a C-shell command. Not BSh. It performs a redirection function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top