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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. moonhead

    execute lines from a file

    Dear All if i had a file that contained a list of commands example ls -l whoami how can i extract each line and execute it then send the output of the command to a unique file moonhead
  2. moonhead

    removing xml comments from file

    how can you remove xml tags from a file file: ======================================================= <!-- NB: All suites del.batches will be run at the beginning followed by the rmhist.batches to ensure that all msisdns are in a suitable position to be used -->...
  3. moonhead

    strip lnes from log files

    Jim thats great, thanks very much! i will give it a go. Andy
  4. moonhead

    strip lnes from log files

    Hi Jim is this supposed to be executed in a script or on the command line maybe i have lost the plot but i cant seem to get it to work i am opening the original file creating a filehandle opening my output file creating a filehandle doing the search and replace removing the keyword line...
  5. moonhead

    strip lnes from log files

    Dear all If i have a text file that contains a number of lines that i dont wan't can i remove the lines based on a generic word within the file example file: line apples and pears line apples and pears line chips and cheese with a selection of chicken line chips and cheese with a selection of...
  6. moonhead

    user options STDIN

    Rieekan i have learned a lot from what you have given in the past i have always had trouble with loops this has helped a great deal Thanks moonhead(&quot;_&quot;)
  7. moonhead

    user options STDIN

    Hi All the code below is doing a search on a file and outputting the results to screen. i would like to give the user the option of doing another search. as you can see i have an if statement setup but i can't call the while loop. how do i do it? open (FILE, &quot;files/comp.log&quot;)...
  8. moonhead

    grabbing a line from an array

    Coderifous thanks for the prompt reply i will give it a go moonhead
  9. moonhead

    grabbing a line from an array

    Hi greadey the code i have provided will search for a string within the array, not the whole line. i would like to search for the string from STDIN and return the whole line that the string resides, not just the search string.
  10. moonhead

    grabbing a line from an array

    Hi All i am currently writing a script that reads a file into an array. i am then doing a search from stdin for a string in the file. my next task is as follows: i would like to grab the line of text where the search string is stored and display it on the screen. including multiple instances...
  11. moonhead

    search text in file from STDIN

    hi there i am currently writing a script that does stuff with files one file has a list of numbers i am trying to perform a match for a string entered from STDIN it compares what the user enters to the content of the file eg enter a number... 2345 #user enters number 2345 is searched for in...

Part and Inventory Search

Back
Top