Find the answer to your Linux question:
Results 1 to 2 of 2
I have written a bash script to remove sections of a file and assign it the appropriate variables. I need to figure out how to index this part of the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    4

    indexing on computer


    I have written a bash script to remove sections of a file and assign it the appropriate variables. I need to figure out how to index this part of the file.

    Code:
      59                                     
      55                      10               
      51                                     
      47                06   *      06            
      43                                     
      39          06    38    06P   38C   06             
      35                                     
      31    08          06          06          10   
      27                                     
      23          06    38    06    38    06           
      19                                     
      15                06          06           
      11                                     
      07                      08               
      03                                     
         02 06 10 14 18 22 26 30 34 38 42 46 50 54 58
    The numbers along the side and bottom are the y and x axis. I need to look up each value and return the location of each value. For example 08 on the far right is in location (06,31). I would prefer to be able to call the program from my bash script or use some other form of bash scripting. The code will always be in this fixed format but may have numbers in the other locations.
    Last edited by surfin; 09-13-2013 at 08:54 PM. Reason: It killed the format

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Quote Originally Posted by surfin View Post
    The lines represent spaces. For some reason it removed the spacing when it was posted.
    try wrapping your text that you want represented literally in CODE tags (it is the # character in the tool bar above the text input box).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •