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
-->...
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...
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 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.