The process is not part of the LHS. These operators are used to open/close files. If for instance I do this:
it is implicit notation for this:
So in fact the left hand side is Standard Input ( File Descriptor 0) ( Likewise > is implicit notation for 1> ).
But I could have written it like this:
or
Note that the orientation of the redirection operator remains unchanged, as the direction to the left denotes reading.
This User Gave Thanks to Scrutinizer For This Post:
I came across the following problem, where file contents are overwritten using redirection. Can somebody please explain what cat << BAR seems to be doing and say why this is a problem? Explain the contents and relation between the two filenames used before the cat command. thanks
/tmp# echo... (2 Replies)
Hi,
in my script I need to execute the following command:
query $id 456 432
but it waits for a RETURN character from keyboard and therefore, it fails. I tried something like:
query $id 456 432 << '\n'
but, i'ts clear it is not correct. Is there any way to do this?
Thxs. (0 Replies)
Hi all,
I am working with the Grinder tool (unrelated to my question) to redirect the output of a program to a file as follows:
java -cp $CLASSPATH net.grinder.TCPProxy > grinder.txt
This is a proxy server which pipes output to a file. When I do something on my proxy, more and more goes to... (1 Reply)
Hi all,
Maybe someone is able to help:
Need to redirect the output of a command in realtime to a second command. Command-A executes a remote shell to another host, and outputs its results. Command-B displays a "dialog" with the outputs of Command-A.
Command-A Output:
Updating FileA... (2 Replies)
I just wondered if I'm understanding this command line correctly
cat 2>save1 0<memo | sort 2>save2 1>letter
This means that stdin will read from memo and if there is an error then stderr will write to save1. Am I correct in saying that the sort command will sort the memo file and write... (2 Replies)
I want to redirect stderr and have the following peice of code
$ cat t1.ksh
#!/bin/ksh
func2()
{
diff /tmp/jdlkwjdlkejew /tmp/djlkwejdlewdjew >$OUTPUT_FILE 2>>$ERR_FILE
}
func1()
{
let counter=0
while
do
print -u2 "Error: In main function"
func2
let... (1 Reply)
Hi gurus,
I have a question, need some of your inputs...
I have a command like this :
export LINE_COUNT=`wc -l test.dat | awk '{print $1}'`
echo $LINE_COUNT --- > gives me 2 which is fine as the file has 2 lines.
This works fine if the file test.dat is present but in case... (3 Replies)
So I have a existing file that I used the uniq command on and I need to save the output to the same file without changing the file name.
I have tried $ uniq filename > filename
then when I cat the file it then becomes blank like there is nothing inside.
any help would be much appreciated... (0 Replies)
OS : AIX 6.1
Shell : Korn
in the url
https://forums.oracle.com/forums/thread.jspa?threadID=361463&tstart=0
I came across a crontab entry example
00 23 * * 1,3,5 <complete shell script path> 1> <log file> 2>&1
From googling , I gathered that
0 - stdin
1 - stdout
2 - stderr
I... (5 Replies)
Hi,
Can I get some explanation around this bash redirection?
From what I have read, x < y means call the shell to redirect the output of y into x.
Does this mean that this sequence of commands is executed from right to left?
diff <(sort testfile.txt) <(sort testfile2.txt)
Thanks,
edit... (2 Replies)
Discussion started by: sand1234
2 Replies
LEARN ABOUT DEBIAN
typetrait
FBB::TypeTrait(3bobcat) Error handler FBB::TypeTrait(3bobcat)NAME
FBB::TypeTrait - shortdesc
SYNOPSIS
#include <bobcat/typetrait>
DESCRIPTION
FBB::TypeTrait is a traits class. It does not define any member functions or data members, but merely types. It can be used to determine
the basic type and other characteristics of (const) plain, (const) pointer or (const) reference types. It was designed after Alexandrescu's(2001) TypeTraits template class.
The FBB::LpromotesR class template is used to determine, compile-time, whether its second (right-hand side) template type can be promoted
to its first (left-hand side) template type.
The FBB::Use class template expects two typenames LHS and RHS and defines typename Use<LHS, RHS>::type as LHS if RHS can be promoted to LHS
or it defines typename Use<LHS, RHS>::type as RHS.
NAMESPACE
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
INHERITS FROM -
TypeTrait<TYPE>
TYPE is the template type parameter whose characteristics must be determined.
TypeTrait<TYPE> defines the type Plain: the plain type (the type without const, pointer, reference type indication) of any const or
non-const plain, pointer, lvalue- or rvalue-reference type.
TypeTrait<TYPE> defines the following bool values:
o isClass: true if the template type argument represents a class (struct) type, false otherwise.
o isConst: true if the template type argument represents a const type, false otherwise.
o isPointer: true if the template type argument represents a pointer type, false otherwise.
o isR_Ref: true if the template type argument represents a rvalue reference type, false otherwise.
o isRef: true if the template type argument represents an lvalue reference type, false otherwise.
LpromotesR<LeftType, RightType>
LpromotesR<LeftType, RightType> defines the enum constant yes as 1 if an RightType argument can be promoted to LeftType value or object.
The enum value yes is defined as 0 if no such constructor is available or if such a constructor is defined using the explicit keyword.
EXAMPLES
Here is an example using LpromotesR:
int main()
{
cout << "string promotes char const *: " <<
LpromotesR<string, char const *>::yes << '
'; // 1
cout << "string promotes string " <<
LpromotesR<string, string>::yes << '
'; // 1
cout << "char const * promotes string " <<
LpromotesR<char const *, string>::yes << '
'; // 0
}
FILES
bobcat/typetrait - defines the class interface
SEE ALSO bobcat(7)
Alexandrescu A.(2001) Modern C++ Design, Addison-Wesley, Boston.
BUGS
None Reported.
DISTRIBUTION FILES
o bobcat_3.01.00-x.dsc: detached signature;
o bobcat_3.01.00-x.tar.gz: source archive;
o bobcat_3.01.00-x_i386.changes: change log;
o libbobcat1_3.01.00-x_*.deb: debian package holding the libraries;
o libbobcat1-dev_3.01.00-x_*.deb: debian package holding the libraries, headers and manual pages;
o http://sourceforge.net/projects/bobcat: public archive location;
BOBCAT
Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.
COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL).
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl).
libbobcat1-dev_3.01.00-x.tar.gz 2005-2012 FBB::TypeTrait(3bobcat)