9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi all, I was wondering if anyone would know how to search & delete inclusively between two lines, please:
There are multiple }; lines. I'm curious how to delete the correct one only.
Line numbers may vary each time this script is run.
For example, I'd like to delete only the... (6 Replies)
Discussion started by: chatguy
2. Shell Programming and Scripting
I've written a script to search for an Oracle ORA- error on a log file, print that line and the .trc file associated with it as well as the dateline of when I assumed the error occured. In most it is the first dateline previous to the error.
Unfortunately, this is not a fool proof script.... (2 Replies)
Discussion started by: newbie_01
3. Shell Programming and Scripting
Being a beginner in scripting I am not sure the direction to take to accomplish the below task and would love suggestions.
input file: domains.list
Read input file, search in named.conf and find domain and delete entry for the purpose of cleanup activity.
named.conf entry example
zone... (8 Replies)
Discussion started by: djzah
4. Shell Programming and Scripting
I tried searching but most 'search and replace' questions are related to one liners.
Say I have a file to be replaced that has the following:
$ cat testing.txt
This is the input file: (3 Replies)
Discussion started by: DeuceLee
5. UNIX for Dummies Questions & Answers
I have a file which contains huge data as
PDE 1990 1 9 18 51 28.90 24.7500 95.2800 118.0 6.1 0.0 BURMA
event name: 010990D
time shift: 7.3000
half duration: 5.0000
Mrr: ... (7 Replies)
Discussion started by: reva
6. Shell Programming and Scripting
Inspite of my best efforts, eclipse 3.5 seems to continue to misbehave and insert tab characters in my source code.
How do I write a script execute from emacs to search all my files for tab characters and conveniently position me on the line of code that has the offending tab?
Here are my... (7 Replies)
Discussion started by: siegfried
7. UNIX for Dummies Questions & Answers
Dear unix gurus,
I have a data file with header information about a subject and also 3 columns of n rows of data on various items he owns. The data file looks something like this:
blah blah blah
blah blah blah
01 30 200
02 31 400
03 57 121
.. .. ..
.. .. ..
n y... (8 Replies)
Discussion started by: tintin72
8. Shell Programming and Scripting
How do I search first string & second string and copy all content between them from one file to another file?
Please help me..
Thanks In Advance.
Pankaj (12 Replies)
Discussion started by: pankajp
9. Post Here to Contact Site Administrators and Moderators
I think you guys should gather up all of the cool, *handy* scripts that you post on this site along with other scripts members post and place them in their own category. Perderabo's date_calc script would be an excellent submission as would the mail script that someone posted that sends... (4 Replies)
Discussion started by: google