Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by fixengineer

  1. fixengineer

    How can multiple users access Win2003 server simultaneously

    Thank you very much for the suggestion. Security should be what you would expect from a typical bank. Also how intrusive are the methods you suggest? The logs are going to be generated by critical server applications. We have to be sensitive to any potential conflicts that may cause performance...
  2. fixengineer

    How can multiple users access Win2003 server simultaneously

    I've got Windows 2003 servers setup in my data center on a different network. I need a way for 3-10 users to access/read log files on the servers at the same time. The boxes have to be secure from unauthorized intrusion. It would be ok if users can only download the log files like in ftp. They...
  3. fixengineer

    sed/awk: If you find string1 in line, take string2+ from line move

    This works!! Sweet! The curly brackets is what I needed. It alows me to combine all the commands I already knew into one statement and does it on a line by line basis. This is a great help. I really apreciate the help, this will really make my job so much easier and faster by allowing me to...
  4. fixengineer

    sed/awk: If you find string1 in line, take string2+ from line move

    Remember I was saying that your command uses fields which won't work cause the fields change. The sate we need will not always be in the second field. I'm assuming $2 means field 2. I tried your command just to be sure and it did'nt work. It just printed out random data(cause field contents are...
  5. fixengineer

    sed/awk: If you find string1 in line, take string2+ from line move

    I thought I went above and beyond stating just the problem. I even showed pieces that do most of the work, so it that requires less work on the park of the person helping me. I'm almost there so you don't have to explain a whole bunch of things to me, just that one final missing piece that I...
  6. fixengineer

    sed/awk: If you find string1 in line, take string2+ from line move

    This looks like it might be along the lines of what I'm looking for, however it does'nt addres some of the core issues I'm having: How to copy wildcard strings from lines that meet search parameters. How to paste both the search pattern itself and the string within the line with search pattern...
  7. fixengineer

    Define each line of data in a file as it updates

    I need to be able to determine the purpose of each line of a file. And track any future references to any past lines. Here are conditions: if line has "ObjectName", then line is "Object" if file has "TOP" and "Bottom" in it, line is "locater". If line has + and * then line is "math" if...
  8. fixengineer

    sed/awk: If you find string1 in line, take string2+ from line move

    I want to display a log file in a more readable format. The core thing is to look for one string in a line then when found take certain data from that line and insert it above the line. If you found a line with CarType=Race, find out what the tire size is in that line and then copy and insert...
  9. fixengineer

    How do take user to remote box and change directory and stay there

    WOW!! Thats great! That works perfectly! That will take my script to a whole new level of functionality. Thank you very much! That was the missing piece I needed. Now to work on incorporating basic AI.
  10. fixengineer

    Display/print only fields that contain string?

    You are the man PHV!! That works like a charm! I just set the field seperator and bam! This is great! Being able to do this opens up MANY possibilities for me. Thank you VERY much!
  11. fixengineer

    How do take user to remote box and change directory and stay there

    No X-Windows unfortunately. ssh -l login $userserver "cd $userpath; $mycommands; echo 'Type exit when done'; exec $SHELL" The above works great, except for the fact that if the user tries to use something like vi, the display gets messed up. I'll see if I can figure out a work around.
  12. fixengineer

    Display/print only fields that contain string?

    I was'nt sure if that was awk since it does not apear to follow the AWK syntax and I tried it and get this: % cat -v fix.log | grep ABT1969 | awk for(i=1;i<=NF;++i)if($i=="string")print $i bash: syntax error near unexpected token `for(i' Where an how should I be using this?
  13. fixengineer

    Display/print only fields that contain string?

    By the way, another aproach on this would be using awk or sed to find a string and wildcard and then ONLY display what it finds or delete the rest of the line. Basically a grep -o alternative. For message: Frank^ATimmy^A4504 find ^ATim*^A(begin with "Tim" and end with "^A". And display what...
  14. fixengineer

    Display/print only fields that contain string?

    What is the context for your answer? Is this a for loop with an if then statement in it? AWK? Is there a way to do this with just awk and grep?
  15. fixengineer

    Display/print only fields that contain string?

    Everything I read seems to deal with fixed amount of fields, but what if the amount of fields change? How can I search for a string in ALL fields(not a specific one like $1 $3) and display only that field? If awk can't do it I'm thinking that maybe I can transfer the fields to positionals and...

Part and Inventory Search

Back
Top