China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-30 20:16
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Ask a DOS command, thank you! View 1,584 Replies 2
Original Poster Posted 2006-09-26 22:29 ·  中国 广东 深圳 天威有线宽带(关内)
新手上路
Credits 6
Posts 1
Joined 2006-09-23 02:00
19-year member
UID 63416
Gender Female
From SZ
Status Offline
To redirect all the lines found by the command `grep -d+ name *.*` into another file named `name.c`, you can use the following command:

`grep -d+ name *.* > name.c`
Floor 2 Posted 2006-09-27 04:27 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Is this a Linux command? Not posted to the Linux section?
Floor 3 Posted 2006-11-06 09:55 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  Try this:
grep -d+ name *.*>>name.c
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
redtek +2 2006-11-09 02:45
Forum Jump: