Peng Yu wrote:
> Hi,
>
> I want to change how the line number is displayed
>
> ~$ echo a | cat -n
> 1a
>
> For example, I want it to be shown as
>
> 1:a
>
> Although this can be easily done in anything other scripting language,
> I'm wondering if there is an even easier way to get
On 12/22/2011 10:14 AM, Peng Yu wrote:
> Hi,
>
> I want to change how the line number is displayed
>
> ~$ echo a | cat -n
> 1a
>
> For example, I want it to be shown as
>
> 1:a
>
> Although this can be easily done in anything other scripting language,
> I'm wondering if there is a
Hi,
On 12/22/2011 06:14 PM, Peng Yu wrote:
I want to change how the line number is displayed
~$ echo a | cat -n
1 a
For example, I want it to be shown as
1:a
Although this can be easily done in anything other scripting language,
I'm wondering if there is an even easier way to get it do
Hi,
I want to change how the line number is displayed
~$ echo a | cat -n
1 a
For example, I want it to be shown as
1:a
Although this can be easily done in anything other scripting language,
I'm wondering if there is an even easier way to get it done with cat.
--
Regards,
Peng