Saved Bookmarks
| 1. |
Solve : Command 'grep' and 'awk'? |
|
Answer» Hi guys, gpdcreport my_run.report -gm -m 1 | gprofile -vs -resample -d 50 -N 50 | grep -v "#" | awk '{print $2,$1}' | gphistogram -y-min 150 -y-max 3500 -x-min 1 -x-max 50 -x-count 50 This works just fine, till the command grep and awk Anyone knows how to solve this? Probably it's a dumb question. I'm a newbie in Ms-dos. ThanksWelcome to the CH forum. There are no dumb questions. Programs grep and awk COME from UNIX, not MS-DOS. Some versions of those two programs have been adapted to run as Windows command line programs. Some questions for you: Which version of Windows or DOS you your have? Which version of awk? Which of grep? What is the error message you get? Answers to the above will help us help you. grep and awk are not "ms-dos" commands; they are part of Unix and related operating systems, such as Linux etc. To use them on a Microsoft Windows system you will have to install Windows versions ("ports"). Google for "Windows grep" and "Windows awk". The Gnuwin32 utilities include versions of grep and awk for Microsoft Windows command prompt (which is not MS-DOS). http://gnuwin32.sourceforge.net/packages/grep.htm There are various Windows versions of awk called gawk including Gnuwin32: http://gnuwin32.sourceforge.net/packages/gawk.htm Or there is the unxutils package which has grep and gawk http://unxutils.sourceforge.net/ A warning: you may find that the Windows versions do not use exactly the same syntax as the UNix originals and you may NEED to modify the command line you are USING. Would you care to EXPLAIN why you are trying to run that command on a Windows or MS-DOS system without preparation or prior study? As Geek says, exactly what operating system are you using? |
|