`command` and $(command) does basically the same. It executes "command" and uses the output of this command to complete the command line. "command" could either be a single command or even a series of commands, a pipeline, etc..
Example:
will first execute "command2", then put its output onto the commandline and execute the resulting line. Suppose the output to be "hello world" the shell would try to execute
after completing "command2". The mechanism is called "process substitution".
The first variant is deprecated, has a lot of shortcomings and should be avoided. Use the second variant instead whenever possible.
Only very old shells (the original Bourne shell for instance) support the first variant(called "backticks") only. Modern shells (ksh, ksh93, bash, ...) support both variants but the former only for backwards compatibility.
hi,
I am pretty new both to unix and this forum, can anyone help me to give shortcuts to my commands...
eg:-
instead of "cd /usr/bin"
i want to to give " bin " and get to that path.
I'm using HP-UX 11.0
abey (2 Replies)
hi,
I am pretty new both to unix and this forum, can anyone help me to give shortcuts to my commands...
eg:-
instead of "cd /usr/bin"
i want to to give " bin " and get to that path.
I'm using HP-UX 11.0
abey (2 Replies)
Hi Guys,
I very new to bt-basic even I got 8 years experience on UNIX. I searched through google about bt-basic but nothing really give me solid documentation. Anybody have documentation or manual for this bt-basic? Pls help me (2 Replies)
Hi everyone, I need some help! I know that this is a very simple little problem but I seem to be stuck. I was just wondering if you could show me the right way.
I basicly have to write a single line of commands (using piping) to do the following:
From the file data.txt, select all of the... (2 Replies)
Hi,
Good morning
I want to install HP-Unix in my PC.
I already have windows XP home edition in my PC.
I do not want remove XP,But I need HP-Unix in the same system.
Is it posssible?
If it is what is the name and version of HP-Unix cd?
Where can I get the CD to install.
I have... (4 Replies)
I know this is pretty basic, but i cant figure it out to save my life. i want it to ask for a variable, as long as that variable isnt -/0 i want it to print out the area. else if the variable is -/0, i want it to print out invalid entry. the only problem is it will still try to print out the... (1 Reply)
There isn't much of a relation between 80's BASIC and today's BASIC.
A lot of languages seem similar. The BASIC I worked with was Dartmouth or VSBASIC. Now existing as ATARI BASIC. PERL and JULIA look appealing, it would be nice if there where a program like VSBASIC. 80's... (7 Replies)