于 2012-1-4 19:26, Wilko Fokken 写道:
On Tue, Dec 27, 2011 at 08:57:55PM +0800, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
some file like a_1.o12 has WARNING, but others does not have WARNING
How can I let grep
On Tue, Dec 27, 2011 at 08:57:55PM +0800, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
some file like a_1.o12 has WARNING, but others does not have WARNING
How can I let grep returns the filename?
try grep -H
On Tue, 27 Dec 2011 14:20:02 +0100, lina scribbled:
On Tuesday 27,December,2011 08:57 PM, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
some file like a_1.o12 has WARNING, but others does not have WARNING
How
On Tuesday 27,December,2011 08:57 PM, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
some file like a_1.o12 has WARNING, but others does not have WARNING
How can I let grep returns the filename?
I wrote a
On Tue, 27 Dec 2011 14:20:02 +0100, lina scribbled:
On Tuesday 27,December,2011 08:57 PM, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
some file like a_1.o12 has WARNING, but others does not have WARNING
How
On Tuesday 27,December,2011 09:51 PM, Tony Baldwin wrote:
On Tue, Dec 27, 2011 at 09:11:45PM +0800, lina wrote:
On Tuesday 27,December,2011 08:57 PM, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
some file like
On Tue, Dec 27, 2011 at 01:19:20PM GMT, Andrei Popescu wrote:
To answer the question in your subject I think the correct command to
use is 'man' :)
Well put, sir! +1 ;^)
Regards,
--
Raf
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe.
On Tuesday 27,December,2011 09:19 PM, Andrei Popescu wrote:
On Ma, 27 dec 11, 20:57:55, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
Useless use of 'cat' (grep can open files)
some file like a_1.o12 has WARNING,
On Tue, Dec 27, 2011 at 12:57:55PM GMT, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
It's one of the useless uses of cat[0].
Use:
% grep WARNING a_*.o*
instead.
some file like a_1.o12 has WARNING, but
On Ma, 27 dec 11, 20:57:55, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
Useless use of 'cat' (grep can open files)
some file like a_1.o12 has WARNING, but others does not have WARNING
How can I let grep
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
some file like a_1.o12 has WARNING, but others does not have WARNING
How can I let grep returns the filename?
Question 2:
ls . | xargs -i -t cp ./{} {}.bak
How does xargs work,
I
On Tue, Dec 27, 2011 at 09:11:45PM +0800, lina wrote:
On Tuesday 27,December,2011 08:57 PM, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep WARNING
some file like a_1.o12 has WARNING, but others does not have WARNING
well, I have two files:
File_a.txt
a
a
a
File_b.txt
b
b
b
I wish to get a file_ab.txt as
a b
a b
a b
man 1 paste Regards,Arno
You can use paste, and/or join. for you particular example
paste -d ' ' a.txt b.txt ab.txt
will work
Regards
--
Roman
On Fri, Dec 23, 2011 at 12:07 PM, Arno Schuring aelschur...@hotmail.comwrote:
well, I have two files:
File_a.txt
a
a
a
File_b.txt
b
b
b
I wish to
On Fri, Dec 23, 2011 at 4:13 PM, Roman Khomasuridze
khomasuri...@gmail.com wrote:
You can use paste, and/or join. for you particular example
paste -d ' ' a.txt b.txt ab.txt
will work
Thanks cool. a derived question,
for a.txt:
1 a
2 a
3 a
for b.txt
1 b
2 b
3 b
what if I only interested the
* lina (2011-12-23):
[...]
File_a.txt
a
a
a
File_b.txt
b
b
b
I wish to get a file_ab.txt as
a b
a b
a b
apt-get install coreutils
paste File_a.txt File_b.txt
-André
--
L'art d'ennuyer est de tout dire. [Voltaire]
--
To UNSUBSCRIBE, email to
lina lina.lastn...@gmail.com wrote:
Thanks cool. a derived question,
for a.txt:
1 a
2 a
3 a
for b.txt
1 b
2 b
3 b
what if I only interested the 2 filed.
namely
a b
a b
a b
Are the 1, 2, 3 relevant? So if you had this, what would you expect as
your output -
a.txt
1 a
2 b
3 c
Hi,
(How are you all?)
well, I have two files:
File_a.txt
a
a
a
File_b.txt
b
b
b
I wish to get a file_ab.txt as
a b
a b
a b
I tried, but still don't know which is the best way to do it,
Thanks ahead and wish all have a nice holiday,
Best regards,
--
To UNSUBSCRIBE, email to
18 matches
Mail list logo