Re: 💻 What’s the First App You Install on a Fresh Windows Machine? Hardware and Software Microsoft Windows by Reverend Jim … (by path & name), not file contents. It isn't grep. 'GREP' usage on huge files, any Limitation? Programming Software Development by crab68 …" filename > newfile With regards to the use of grep and then output to a file as it was done… Re: grep issues Programming Software Development by Salem grep by itself just matches strings. It doesn't care what comes before or after. Try something like [ICODE]df -g | egrep '/oracle/BP1/sapdata1$'[/ICODE] That is, the line ends with sapdata1, not just contains sapdata1 (like sapdata10 contains sapdata1) Grep help Programming Software Development by kenshin88 grep i have this [CODE]grep -n hello filename grep -v hello filename grep -y hello filename grep -i hello filename grep… -w hello filename grep …' filename[/CODE] and for the second one [CODE]grep -v hello filename sed -nr '/hello/!p' filename… Re: Grep help Programming Software Development by JeoSaurus Hello kenshin, how far have you gotten with this? Anything you can do with grep, you can probably do with awk! For example: [code] grep -y hello filename # is equal to: grep -i hello filename # which is equal to: awk '/hello/i' filename [/code] Hope this gets you going in the right direction! -G Re: 'GREP' usage on huge files, any Limitation? Programming Software Development by jim mcnamara … enabled quotas will also cause the output file to truncate. grep has a line length limit of 2048 characters. There also… Re: 'GREP' usage on huge files, any Limitation? Programming Software Development by crab68 … enabled quotas will also cause the output file to truncate. grep has a line length limit of 2048 characters. There also… grep does not work as expected Programming Software Development by clife … ULBbytes greater than zero. grep -v "0.0.0.0" | grep -vw "DLBbytes:0" | grep -vw "ULBbytes:0…" grep -v "0.0.0… ehco "IP:20.20.20.50 DLBytes:0" | grep -vw "DLBbytes:0" its working. so why its… Re: grep does not work as expected Programming Software Development by rch1231 Hello, You havean extra b in your grep. try this: `grep -v "0.0.0.0" | grep -vw "DLBytes:0" | grep -vw "ULBytes:0"` grep command help Programming Software Development by AcidG3rm5 …:broken$tuff 10:robots 11:rebine when i did a grep -n "b*" a_file.txt, it returned 1:boot… starts with the letter b, i should instead do a grep -n "^b" a_file.txt. Anyone can explain to… me what grep -n "b*" a_file.txt does? as in, "… grep issues Programming Software Development by shawnk I am trying to execute a simple grep command in my shell script. I am not sure why … other file system. [COLOR="Green"]> df -g|grep /oracle/BP1/sapdata1 70.00 11.37 84% 21 1….44 11% 8 1% /oracle/BP1/sapdata10 > df -g|grep /oracle/BP1/sapdata10 100.00 89.44 11% 8 1… grep simple doubt Programming Software Development by aFg3 I want to search only in my files, contains only .txt and .c [CODE] This doesn't work for me ls | grep .txt | grep .c[/CODE] I want the ls and grep .txt, .c ??Thanks?? Re: Grep data with variable Programming Software Development by LRNPHP …;1769353]Any reason you are not just using [icode]grep $uniqueValue Full_*[/icode]?[/QUOTE] Hi L7Sqr, I tried it… with [icode]grep $uniqueValue Full_* [/icode] but it gave the same output… and then run my [icode]cat value | xargs -i grep {} Full_* [/icode] I get output but not always. Any… Re: grep '^[a-zA-Z]' Programming Software Development by vrgurav cat somefile | grep "^[a-zA-Z]" it will direct the output of first command ie cat somefile to grep command and grep will give from first column of somefile all data having character between A-Z or a-z Grep : Trying to match a trailing backslash (\) Programming Software Development by kneiel … 3rd line (line with the printf) When i try [code] grep '\\' Temp1 [/code] i am shown the 1st line and the…'t want the 3rd line. Similarly, when i try [code] grep '\\$' Temp1 [/code] it does not work. Plz help ! Re: Grep : Trying to match a trailing backslash (\) Programming Software Development by sknake …; +d; > printf("\n"); > _EOF_ sk@sk:~$ grep '\\' Temp1 | grep -v '\\$' printf("\n"); sk@sk:~$ [/code] Re: grep issues Programming Software Development by shawnk [QUOTE=Salem;1128261]grep by itself just matches strings. It doesn't care what comes before or after. Try something like [ICODE]df -g | egrep '/oracle/BP1/sapdata1$'[/ICODE] That is, the line ends with sapdata1, not just contains sapdata1 (like sapdata10 contains sapdata1)[/QUOTE] YES!!! that worked. You are the man... thanks. Re: Grep : Trying to match a trailing backslash (\) Programming Software Development by AndresVia … 3rd line (line with the printf) When i try [code] grep '\\' Temp1 [/code] i am shown the 1st line and the…'t want the 3rd line. Similarly, when i try [code] grep '\\$' Temp1 [/code] it does not work. Plz help ![/QUOTE] [CODE… Grep - end of line problems Programming Software Development by Pandamonium Hi, I am having a lot of issues using grep. I am trying to counts the number of lines which … work. Here is what i have working so far: [code]$ grep -c '^[L,W]' rolllist.txt [/code] I know the $ is… Re: Grep - end of line problems Programming Software Development by shibblez [CODE][shibblez0@plymouth Download]$ echo "Lylac, Kenneth R. BS UNDECLARED 3.403 " | grep -c '^[LW].*3$' 0 [shibblez@plymouth Download]$ echo "Lylac, Kenneth R. BS UNDECLARED 3.403 " | grep -c '^[LW].*3 *$' 1 [shibblez@plymouth Download]$[/CODE] Try '^[LW].*3 *$' as your RE - it ignores any number of spaces at EOL. Re: Grep - end of line problems Programming Software Development by shibblez … C. 0011578904 **Web Registered** BS COMPUTER SCIENCE 3.003" | grep -c '^[LW].*3 *$' 1 [shibblez@plymouth Download]$ echo "White… C. 0011578904 **Web Registered** BS COMPUTER SCIENCE 3.003 " | grep -c '^[LW].*3 *$' 1 [shibblez@plymouth Download]$ [/CODE] grep all but first line Programming Software Development by TheWhite … preserve this line if I do a "ps aux | grep <someuser>" so that I can still see… the header for each column? In essence, I want to grep all but the first line of the initial "ps… grep and sed / with pipes in C? Programming Software Development by Sundown G … crack) this hash: a9ced3dad556814ed46042de696e1849 im using [CODE]#!/bin/bash linenum=$( grep -w -n a9ced3dad556814ed46042de696e1849 file2.txt | cut -f1 -d: ) sed -n… main(){ FILE *read_fp; int chars_read; char searchash[1024] = "linenum=$(grep -n -w "; char buffer[BUFSIZ + 1]; memset(buffer, '0… grep and sed / with pipes in C? Programming Software Development by Sundown G … crack) this hash: a9ced3dad556814ed46042de696e1849 im using [CODE]#!/bin/bash linenum=$( grep -w -n a9ced3dad556814ed46042de696e1849 file2.txt | cut -f1 -d: ) sed -n… main(){ FILE *read_fp; int chars_read; char searchash[1024] = "linenum=$(grep -n -w "; char buffer[BUFSIZ + 1]; memset(buffer, '0… Grep data with variable Programming Software Development by LRNPHP … value (1319613308.476855) to my value file but when I grep the value it displays nothing and I know the value… new Query" echo $uniqueValue cat value | xargs -i /bin/grep {} Full_* sleep 2 echo "" done [/CODE] Regards grep and Compare text and put it in a different file Programming Software Development by erezz … a log file contain 28 lines, 1-I need to grep the line with the size next to that i need… to grep the name from the line Example: Size element 1. 906K… Re: Grep : Trying to match a trailing backslash (\) Programming Software Development by cfajohnson [QUOTE=kneiel;993863] [code] grep '\\$' Temp1 [/code] it does not work. [/QUOTE] [indent] It works for me. Did you create the file on a Windows box? If so, there will be a carriage return before the newline, and the backslash will therefore not be the last character on the line. [/indent] Re: Grep : Trying to match a trailing backslash (\) Programming Software Development by cfajohnson …. If the backslash were the last character on the line, grep would still read it as three lines. Only the shell… Re: Grep : Trying to match a trailing backslash (\) Programming Software Development by cfajohnson [code] grep '\\.$' Temp1 [/code] Re: Grep - end of line problems Programming Software Development by Pandamonium Lots of things, but nothing has worked. I am still learning how to use grep so I am bashing my head against a wall. :D I havent even been able to get it to count the number of lines that end in 3. If I could get that I can figure the rest out.