Hello,
What does this thing () do? I failed to understand its mechanism.
Thanks.
Junayeed Ahnaf Nirjhor
Core Developer Intern, Diaspora
Twitter - @Nirjhor http://twitter.com/nirjhor
--
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
You should specify where, in C++ right? Or in linux shell?
--
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
It is a standard I/O redirector. It means append this output to the end of
that file.
Suppose, someone has a file named a.txt and a.txt has a value X in it. Now,
if we run
echo 'Y' a.txt
it will replace the file a.txt and will have value Y. And if we run
echo 'Y' a.txt
it will append '2' at
program file
The above command will redirect the STDOUT of `program` to `file`.
When you specify single it starts writing at the beginning of the file
and for double () it starts writing at the ending of the file.
is same as 1 means, STDOUT will be redirected. 1 stands for STDOUT and 2
I didn't know what it is. Just learnt it. It shifts the bits. For
example (in python shell):
3 1 # 00 00 00 11 moves 1 bit right 00 00 00 00 01
#Output: 1
3 1 # 00 00 00 11 moves 1 bit left 00 00 00 01 10
#Output: 6
# you can experiment with numbers:
1 1
#Output: 2
1 2
#Output: 4
1 3
Hmmm . that helped. thanks
-Original Message-
From: ubuntu-bd-boun...@lists.ubuntu.com
[mailto:ubuntu-bd-boun...@lists.ubuntu.com] On Behalf Of Kabbo Sarker
Sent: Sunday, March 25, 2012 4:01 PM
To: Ubuntu Bangladesh
Subject: Re: [Ubuntu-BD] bitwise right shift ()
I didn't know what