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
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
-->...
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...
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...
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("_")
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, "files/comp.log")...
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.
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.