Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what is the DOS equivalent of the "cut" command?

803 views
Skip to first unread message

Ameya

unread,
Aug 23, 2007, 9:56:54 AM8/23/07
to
Hello,

I am trying to cut a specific column from a piece of text that I get
as an output through piping. I know that in Linux the "cut" command
does the trick but I do not know what is the command for that in DOS
or if I can do it in dos command line. It would be great if anyone
can
help me in this.

The command is as follows:

type abc.txt | find "Hello" | (I don't know what command to use to
cut
a specific column)

Thanks in advance

Regards,
Ameya

foxidrive

unread,
Aug 23, 2007, 10:06:53 AM8/23/07
to

You can get ports of SED and AWK in Windows as well as linux tools using CGYWIN

Dr J R Stockton

unread,
Aug 23, 2007, 5:12:55 PM8/23/07
to
In alt.msdos.programmer message <1187877414....@e9g2000prf.goog
legroups.com>, Thu, 23 Aug 2007 06:56:54, Ameya
<ameya....@gmail.com> posted:

>I am trying to cut a specific column from a piece of text that I get
>as an output through piping. I know that in Linux the "cut" command
>does the trick but I do not know what is the command for that in DOS
>or if I can do it in dos command line. It would be great if anyone

COLS, via sig line 3, should easily do it.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk DOS 3.3, 6.20; WinXP.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.

Ameya

unread,
Aug 24, 2007, 4:36:06 AM8/24/07
to
On 23 Aug, 23:12, Dr J R Stockton <j...@merlyn.demon.co.uk> wrote:
> In alt.msdos.programmer message <1187877414.946448.15...@e9g2000prf.goog

> legroups.com>, Thu, 23 Aug 2007 06:56:54, Ameya
> <ameya.r.sa...@gmail.com> posted:

>
> >I am trying to cut a specific column from a piece of text that I get
> >as an output through piping. I know that in Linux the "cut" command
> >does the trick but I do not know what is the command for that in DOS
> >or if I can do it in dos command line. It would be great if anyone
>
> COLS, via sig line 3, should easily do it.
>
> --
> (c) John Stockton, Surrey, UK. ?...@merlyn.demon.co.uk DOS 3.3, 6.20; WinXP.

> Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
> PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
> My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.

Hello Everyone,

Thank you for your replies. I have downloaded Cygwin and it works
great.

Regards,
Ameya

0 new messages