GNU bug report logs - #14505
Bug in "cat" command

Previous Next

Package: coreutils;

Reported by: "Kakkar, Mayank (NSN - IN/Bangalore)" <mayank.kakkar <at> nsn.com>

Date: Wed, 29 May 2013 15:12:06 UTC

Severity: normal

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Kakkar, Mayank (NSN - IN/Bangalore)" <mayank.kakkar <at> nsn.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: Bug in "cat" command
Date: Wed, 29 May 2013 11:57:49 +0000
[Message part 1 (text/plain, inline)]
Hi RHEL Team,

I was working with cat command and testing its functionality. I learnt in one of the manuals that if multiple files are specified, the contents of the files are concatenated in the output, but line numbering is restarted at 1 for each file. However in an experiment I found this not to be true.

[root <at> sai6 mayanktest]# ls -l aa bb
-rw-r--r-- 1 root root 10 May 29 17:15 aa
-rw-r--r-- 1 root root 22 May 29 17:18 bb

[root <at> sai6 mayanktest]# cat -b bb aa
     1  a
     2  b
     3  c
     4  d
     5  e


     6  f
     7  g
     8  h
     9  i
    10  j
    11  1
    12  2
    13  3
    14  4
15  5

Here, we can see that the numbering does not restarts with the new file contents.

I look forward to your response.

Regards
Mayank

[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.