FileA
NAME STATE CITY
---- ---- -----
abc ca ca
bcc ny ny
def nj nj
(3 rows affected)
Q1) I want to delete the second row with is ---- ---- -----.
Can delete 2nd row using following
but incase the second record is not ---- ---- -----.
then data will get deleted how to implement this logic to check ---- ---- ----- before deleting.
Q2) the last row will be (x rows affected)
i can implement this using
but in case last record is not (x rows affected)
data gets deleted how can i handle this.
I want to check before deleting.
Hi all,
First off, Thank you all for the knowledge I have gleaned from this site!
Deleting Records from a text file... sed paragraphs
The following code works nearly perfect, however each time it is run on the log file it adds a newline at the head of the file, run it 5 times, it'll have 5... (1 Reply)
I have a Java program which will automatically trigger some scheduled job to update Db or some other work. I am tracking the jobs with log messages and finding out it is properly run or not. I want to write a script to capture it correctly on time.
Say Job1 is running on 15, 30, and 45 every... (5 Replies)