The 10.Delete data doesnt work at all, plesase anyone could help on that. When I choose options 10 to delete a record it only copy the selected data on the other file dbs1 but doesnt delete it from the database where other records are.
Last edited by Lina_14; 05-27-2012 at 11:13 AM..
Reason: Please wrap code and data with CodeTags; please use descriptive titles
What happens if you manually execute that command?
Or, execute the command without the -v option? Without the -v option, the result would demonstrate what meets the criteria.
should copy all except for lines with "stuff"
while,
would show you what contains "stuff"
As I read your code, I do not think the grep is analyzing the input file. It is early on a Sunday morning for me, but I think you would want something like:
its pretty the same when I exeute the comand without -v, I mean its a way better in terminal but still doesnt delete the data from database, maybe its something wrong with the whole code, idk...Thank you for your kind replay, apreciate it
Need Assistance in a script to delete date for Below example
There are four period(.) line . I wanted to delete 2 period(.) from below .
5 .TODAY...MOSTLY SUNNY. HIGHS 58 TO 63. LIGHT WINDS IN THE MORNING
6 BECOMING NORTH 10 TO 15 MPH IN THE AFTERNOON.
7 .TONIGHT...MOSTLY CLEAR.... (5 Replies)
hi
i have my input data like this
aaa bbb ccc
asa dff nmj
mnj saa dff
oik
aax cdx saa
oik
asq sdf dssi want my output file to be like this
mnj saa dff oik
aax cdx saa oiki want to retain only those lines which will have oik just below them and i want oik to be as next column to those... (1 Reply)
Hi, I'm new to programming in shell and I wanted to make a simple database on shell script but I'm having trouble in deleting data. I would apreciate any kind of help. Thank you in adavanced. (7 Replies)
Hi,
I have come across a little strange problem in my script. i tried the same logic in some other script where its working fine. but in other script its not behaving as expected.
Here is the code:
#!/bin/bash
run_count="2"
catalog_name="demo"
cd... (3 Replies)
Hello,
I want to add a new row to a file to insert data without deleting the previous data there.
Example:
file
a
b
c
d
Output
a
b
newtext
c (6 Replies)
Hello,
I have the following data file structure:
1234 text
2345 text
3456 text text text
4567 text text text
5678 text text text
6789 text text text
I simply want to delete all of the lines that only have one text column (i.e. the first two lines in this case). The output would be:... (1 Reply)
Hello Everyone,
I have a perl script that reads two types of data files (txt and XML). These data files are huge and large in number. I am using something like this :
foreach my $t (@text)
{
open TEXT, $t or die "Cannot open $t for reading: $!\n";
while(my $line=<TEXT>){
... (4 Replies)
This is probably archaic, but I'm new to unix and this is my first shell script. I'm writing this script to use in another script. All I am trying to do is make the parts of the output from date usable in my other script. I was wondering if you could stand looking at this and see if you notice... (8 Replies)
I am about to retire several servers and need to delete the company confidential data from the internal disks under LVM control. Is there a proven and easy way to accomplish this ?
Thanks for all the help in advance. (4 Replies)