Search Results

Search: Posts Made By: jojojmac5
2,479
Posted By jojojmac5
I want an output for what ever I search for and...
I want an output for what ever I search for and when the search has no match, I want an output of some text of my choosing, like comma's or "No Match".
2,479
Posted By jojojmac5
Just an FYI, I have to use nawk for this to work...
Just an FYI, I have to use nawk for this to work without an error message. But, it still prints out ,,, for every line in the file??

---------- Post updated at 12:04 PM ---------- Previous update...
2,479
Posted By jojojmac5
Thanks for your replies. I am getting closer. My...
Thanks for your replies. I am getting closer. My bad for not providing enough info. Lets say I have 10,000 lines of data, but only 4 to 10 lines start with "A". I only want to search for "five" in...
2,479
Posted By jojojmac5
Search String, Out matched text and input text for no match.
I need to search a string for some specific text which is no big deal using grep. My problem is when the search fails to find the text. I need to add text like "na" when my search does not match.
...
2,637
Posted By jojojmac5
Thanks, that worked! ---------- Post updated...
Thanks, that worked!

---------- Post updated at 07:49 AM ---------- Previous update was at 07:41 AM ----------



I am on a SunOS 5.10 at a Bash prompt. The awk man page does not tell me the...
2,637
Posted By jojojmac5
I am sorry, I cannot figure out how this is...
I am sorry, I cannot figure out how this is supposed to be added into the original command

---------- Post updated at 04:27 PM ---------- Previous update was at 04:25 PM ----------



I cannot...
2,637
Posted By jojojmac5
Thanks RudiC, the awk command worked just fine! ...
Thanks RudiC, the awk command worked just fine!

---------- Post updated at 11:08 AM ---------- Previous update was at 10:51 AM ----------

RudCi,

I did find a little glitch, if the last line...
2,637
Posted By jojojmac5
Sorry about that, I made a typo, I only needed 6....
Sorry about that, I made a typo, I only needed 6. Let me give this a try! Thanks :)
2,637
Posted By jojojmac5
I need 6 columns regardless of the search results...
I need 6 columns regardless of the search results using a UNIX Bash Shell script.

---------- Post updated at 09:46 AM ---------- Previous update was at 09:46 AM ----------

Thanks in advance!
2,637
Posted By jojojmac5
Always output 6 columns regardless of search results
If I am searching for AA then then BB in a loop, how do I make the output always contain 6 columns of comma separated data even when there may only be 4 search matches?
AA11
AA12
AA13
AA14
BB11...
2,449
Posted By jojojmac5
This will work for me, thanks for all the help.:)
This will work for me, thanks for all the help.:)
2,449
Posted By jojojmac5
Thanks for all your help! My trouble is that I...
Thanks for all your help! My trouble is that I have never used perl before. Is there a way to do this using awk?
2,449
Posted By jojojmac5
Combine multilpe lines with various combinations
I have the following file that looks simular to this:

68 1 2 10
68 3
68 4
107 1
107 10
5 1 10

How can I make the file look like this:

5 1 10
68 1 2 3 4 10
107 1 10
46,304
Posted By jojojmac5
I got the comm to work. I used the man comm to...
I got the comm to work. I used the man comm to find out -12. Thanks a bunch!
46,304
Posted By jojojmac5
What & why is the -12 used?
What & why is the -12 used?
46,304
Posted By jojojmac5
Find matching lines between 2 files
How do I find matching lines between two files?
3,756
Posted By jojojmac5
Here you go, this is what dat continuous data...
Here you go, this is what dat continuous data being dumped into the file looks like: I am trying to cgrep the most recent OP:TGCNT message.


S570-65592 06-10-06 10:31:01 474383 TRFM lansing2
...
3,756
Posted By jojojmac5
cgrep for the most recent 15min output
I have a history file that recieves all sorts of messages 24 hours a day. I have a script that retreives various messages in the history file. There is an one multi line output that is sent to the...
15,535
Posted By jojojmac5
Thanks! I knew it would be a easy fix :)
Thanks! I knew it would be a easy fix :)
15,535
Posted By jojojmac5
How do I output or echo NONE if grep does not find anything?
I am performing a grep command and I need to know how to echo "NONE" or "0" to my file if grep does not find what i am looking for.

echo What i found >> My_File
grep "SOMETHING" >> My_File

I...
2,595
Posted By jojojmac5
Looping script with variables
If I have a file with a bunch of various numbers in one column, how can I make a script to take each number in the file and put in into a command line?
Example:

cat number_file
2
5
8
11...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 04:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy