10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have made a program that reads a text file and checks for palindromic words and then outputs them. They each appear on a new line with a count of the number of occurences beside each of the words.
Requirements for being classed as palindrome are that the word must have at least 3 letters and... (7 Replies)
Discussion started by: greenhouse91
2. Shell Programming and Scripting
I am using below code :
if echo $ORAR|grep -i "_"
ORACLE_SID1= echo $ORAR|cut -f2 -d "_"
ORACLE_SID=fgrep "$ORACLE_SID1" /etc/oratab|cut -f1 -d ":"
ORACLE_SID1= echo $ORAR|cut... (1 Reply)
Discussion started by: admin_db
3. Shell Programming and Scripting
I got a new mac and can't get grep, awk etc to work.
I tried the following command:
grep DICER test.txt
text.txt looks like this:
AGOWhat is wrong?
Please use code tags (23 Replies)
Discussion started by: Palgrave
I am using csh.
Output of command jobs
+ Running /home/alokg/nedit-5.5-Linux-x86/nedit .cshrc
Running /home/alokg/nedit-5.5-Linux-x86/nedit build/irun_usb2.log
Running /home/alokg/nedit-5.5-Linux-x86/nedit... (3 Replies)
Discussion started by: alokgarg79
5. UNIX for Dummies Questions & Answers
Hi All..I need a help i am trying to find a word using below script whereas the word exists in my file nitin.txt as a directory but still i am getting "word not found" output..Your suggestions welcomed.:
#to check for existence of nitin
ls -lrt >... (4 Replies)
Discussion started by: nattynitin
6. UNIX for Dummies Questions & Answers
Hello, I'm going crazy about this. I'm using grep to filter some values as in pas -ef | grep asterisk. When I use the same with -f somefile something weird happens, if somefile is created with vi it'll work, if somefile is created with vi but values are pasted from an Excell file it will not work.... (2 Replies)
Discussion started by: seveman
7. Shell Programming and Scripting
I've prob in doing grep. I want to grep line staring with number 531250 in the 1st column from a file (example in picture attached below)
grep -w "531250" file
my ideal result should be
531250 1 21 42.1 100 1e-05 ... (8 Replies)
Discussion started by: masterpiece
8. Shell Programming and Scripting
Hi, On the log Netscape log, I need to grep for 500 error. I am doing that but I also get 1500 in that same log.
cat access |grep "500"
"GET /css/RBR.css HTTP/1.1" 200 15000 304 - - - 399 639 523 164 0
This not what I need... Please advice. (4 Replies)
Discussion started by: samnyc
9. UNIX for Dummies Questions & Answers
This condition is not able to grep , can any one tell what's wrong with this part.
I am able to see from unix command but not with host script.
echo "Checking for Loader Status " >> $REPFILE
if test $? = 0
echo "Successful termination of SQL*Loader "$LOADER1 >>... (5 Replies)
Discussion started by: u263066
10. UNIX for Advanced & Expert Users
I am trying to cat a file and then grep that file for a number. I can do it fine on other files but this particular file will not do anything. I tried running it on an older file from the same device but it is just not working. The file is nothing more than a flat file on a unix box. Here is just a... (3 Replies)
Discussion started by: jphess