grep is a command-line tool for searching text patterns in files
0
votes
3answers
89 views
For all files that does not contain a string, prepend a string to the file
I am trying to iterate through a list of html files, check to see if {% load static from staticfiles %} exists in the file and if it does not exists, prepend {% load static from staticfiles %} to it.
...
1
vote
2answers
118 views
Unix command for pattern matching
I want to count the number of words and print the matched pattern lines which matches exactly with following pattern:
abc-ERROR:
The input File contains:
# abc-ERROR: xyxxkkfgfr
# def-Error: ...
2
votes
1answer
167 views
Web front-end to find/grep/ack
In my lab, we are trying to build a web that allows the user to enter queries for find, ack, grep on a specific directory. The web would return an HTML with a table of a list of clickable files (click ...
0
votes
1answer
70 views
Search low values in linux files
I am working with mainframe files and it seems that the low values (x'00') exists in the records in the file which throughs off my import for fixed block
Does anyone know how to eliminate this ...
2
votes
0answers
259 views
How to generate a report summary of messages that triggered a specific DSN code
I use Sendmail on CENTOS 5.x,
I hope this is a simple question. =) I need to generate a report summary of messages that triggered a specific DSN code. For example:
Jan 11 07:43:34 server-example ...
