Hi, i want to delete a column from a file. the file is like : 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 if i want to remove any column the outout should be like ( suppose 4): 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 i have used swk command, but its not giving the desired output: its giving some extra delimeters: awk 'BEGIN{FS=OFS="|"}{$4="";gsub(FS,"")}1' file please help

Member Avatar
Member Avatar
+0 forum 12

I have this: <div class="to_remove"> <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> <div class="panel-body"> content </div> </div> </div> </div> I need preg_replace to edit like this: <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> <div class="panel-body"> content </div> </div> </div> I need to remove <div class="to_remove"></div> but the content between tags must be stay.

Member Avatar
Member Avatar
+0 forum 3

I want to do a /home search and remove for files named error_log that are over 5mb I use this now but it doesn't factor space: find /home -type f -name error_log -exec rm -f {} \; Any idea how to add the 5 mb limit here? Thanks!

Member Avatar
Member Avatar
+0 forum 3

I copied this code from page 11 of http://personal.denison.edu/~krone/cs173/files/PythontoC++.pdf and assigned it to a Python string. Alas there are still line numbers. How could I use Python to remove these? Help, I have a mental block. s = ''' 1 #include <iostream> 2 using namespace std; 3 4 int gcd(int u, int v) { 5 int r; 6 while (v != 0) { 7 r = u % v; // compute remainder 8 u = v; 9 v = r; 10 } 11 return u; 12 } 13 14 int main( ) { 15 int a, b; 16 cout << …

Member Avatar
Member Avatar
+0 forum 2

I have been looking for a solution to isolate markings and have not found anything on the internet that is close to for what I am looking. I am trying to isolate the markings in a series of pictures. I have one, unmarked image. I then have a series of identical images with markings. I would like to remove the original image from the succeeding images leaving only the markings "floating" on a white background. I have removed the color from the images, but that leaves the black and white original markings. I am looking for any hints, ideas, comments, …

Member Avatar
Member Avatar
+0 forum 5

I need to add a check box on the end of each value in my html table that will be checked if the user would like to remove that value from the mysql database, my current cod elooks like this: <?php $con = mysqli_connect("localhost", "root", "", "numbers") or die(mysqli_error($con)); // Check connection $result = mysqli_query($con,"SELECT * FROM usernumdata"); echo "<table border='1'> <tr> <th>First name</th> <th>Last name</th> <th>Phone Number</th> <th>Date Added</th> <th>Time Added</th> </tr>"; while($row = mysqli_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['firstname'] . "</td>"; echo "<td>" . $row['lastname'] . "</td>"; echo "<td>" . $row['numb'] . "</td>"; echo "<td>" . …

Member Avatar
Member Avatar
+0 forum 13

Hi Dw How can I delete a registry key for other program, I just checked my registry and the virus was registered under the same registry key of my other program and now I want to use java as also part of learning java and the method of accessing and deleting a particular registry. Any suggestion, link, structure code will be appreciated. Thank you

Member Avatar
Member Avatar
+0 forum 11

I just installed linux fedora 16. When i want to view my software packages in the "Add/Remove software" it doesnt show any packages. it give the following error when i click on the "Package Collection" tab: The group list was invalid The group list could not be loaded Refreshing your cache may help, although this is normally a software error. that was the error. I have already cleanes my cache and i did a system update. How can i fix this so that it shows my packages. note: i encrypted my disk at the instalation setup. Thanks...

Member Avatar
Member Avatar
+0 forum 4

I want to null or remove array at the end of each loop. I already tried unset() or $array=array(); but its not working foreach($array as $key=>$value){ $dates[$value][]= $key; unset($dates) } Just tell me php function to null all array

Member Avatar
Member Avatar
+0 forum 2

hi all, I have a piece of code, I can delete the first value but fails and give notice InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index Private Sub ComboBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown If ComboBox1.Items.Count > 0 Then If e.KeyCode = Keys.Delete Then ComboBox1.Items.Remove(ComboBox1.SelectedItem) 'or 'ComboBox1.Items.RemoveAt(ComboBox1.SelectedIndex) End If End If End Sub thank help !

Member Avatar
Member Avatar
+0 forum 3

OK... so here's the deal. I have tried multiple Google and forum searches to no avail. Maybe it's they way I'm searching but this is a last resort. I'm trying to have a page (HTML and Javascript mix) that a user can input a few lines of code into. Then either automatically or by clicking a Convert button ... the HTML tags from the input box can be stripped away leaving plain text that is outputted to a new textarea that the user can then copy and paste elsewhere. Example... the user types or pastes the following into the input …

Member Avatar
Member Avatar
+0 forum 3

Hello good day. I am having trouble letting my listeners wait on each other. I have a 1. JComboBox 2. JList - groups 3. JList - students The choice from the JComboBox, clears and updates the groups JList by way of an actionlistener. The ListSelectionListener for the groups JList, then responds to you selecting data (that was just added). The choice is refelcted in the students JList. The trouble is I am getting a NullPointerException at random times. I believe this happens because in order to update the groups-JList via the ComboBox's ActionListener, I need to clear it's contents first. …

Member Avatar
Member Avatar
+0 forum 6

Dim hTable As Hashtable = New Hashtable() Dim duplicateList As ArrayList = New ArrayList() Dim itm As ListViewItem For Each itm In ListView1.Items If hTable.ContainsKey(itm.Text) AndAlso hTable.ContainsKey(itm.SubItems(1).Text) AndAlso hTable.ContainsKey(itm.SubItems(2).Text) AndAlso hTable.ContainsKey(itm.SubItems(3).Text) Then 'duplicate duplicateList.Add(itm) Else hTable.Add(itm.Text, String.Empty) End If Next 'remove duplicates For Each itm In duplicateList ListView1.Items.Remove(itm) Next I want to compare 3 subitem in listview like this: Date____________Name_______________Value 11/12/13________llallala_______________12334 11/12/13________llallala_______________12334 11/12/13________ddsfvxcv_____________16542 13/12/12________ddsfvxcv_____________12334 10/12/13________owowewe_____________23024 then normally it will remove first and second row because it is duplicate but now it cannot.... I means it just compare between first column....so if the first column is same but second and third …

Member Avatar
Member Avatar
+0 forum 3

I am working on a project (simple phone book) for personal use. Basically, the contacts are displayed in a listview and stored in a XML file. I am having trouble deleting the last remaining item in my listview (listView1). So, let's say that I have got 5 contacts in the list and when I try to remove all of them, it's not possible. It is possible to remove only 4 of them. When I try to remove all of them and then close/run the application, there will be no removed contacts - all of them will still be there, like …

Member Avatar
Member Avatar
+0 forum 5

Hello All, Just looking for code snippets to remove color from jpg image. I would like to remove red, blue, green from a picture, leaving black and white. For instance, imagine a newspaper cartoon with an "X" on the picture. I want to remove the colors leaving the "X". I'd also like to have Jscrollpanel show with original image and one with new image next to it (two JScrollPanes on same screen) so I can see what is happening ans I progress. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

hi , i am trying to write code to remove specific word from the text entered by the user do do { Console.WriteLine("enter your text"); input = Console.ReadLine(); text = input.ToLower(); result = text.Replace("remove", ""); Console.WriteLine("Edited text:" +result); } while(text == null); { Console.WriteLine("enter your text"); input = Console.ReadLine(); text = input.ToLower(); result = text.Replace("remove", ""); Console.WriteLine("Edited text:" +result); } while(text == null); in the above code i tried to remove the word remove from the text entered by the user. but if i type removed instead of remove it should not replace it however my program is replacing it. …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I'm trying to delete elements from an array - The array should be a shopping cart - So I need to ad/remove items from it. So far I can add items no problem, but i seem to keep failing to delete the correct indexes. The array contains a product id and the quantity of that product in the cart. I have this: // Cart array: // Should that be build in another way? $cart = array( 'data' => array( 'product_id' => array( 1000 ), 'quantity' => array( 1 ) ) ); print_r( $cart ); echo '<br /><br />'; …

Member Avatar
Member Avatar
+0 forum 1

Hi.... I'm new in Ubuntu and GNOMe... something I don't understand is that when I've used this command to uninstall my gnome sudo apt-get remove gnome* ...and then install it again using another command which I've also found in the internet... ...then reboot my laptop... I came up to a message saying " The system is running in low-graphics mode" then pressing continue I got thie choices " Run in low graphics Reconfigure graphics Troubleshoot the error Exit console login " I don't really know what to do... My senoir just suggested to reformat my laptop and install ubuntu again...but …

Member Avatar
Member Avatar
+0 forum 2

my PC was installed a software which is developed by China telecom, I don't want it at all, and maybe it can scan my PC. but I can't remove or delete it. I try to open my PC in safe mode, and delete it, but it seems that I don't deleted it at all. now no matter in safe or normal mode, I was not allowed to delete it. pls see the picture attached and help me delete it. this is the software in my control panel this is the picture when I delete it.

Member Avatar
Member Avatar
+0 forum 4

how to remove the password from your computer when it on the beging before runnig the wodows

Member Avatar
Member Avatar
+0 forum 4

Hi How can Iremove all object that Im created in oracle database. I have 8 tables and I would like to remove all which commans should I use?

Member Avatar
Member Avatar
+0 forum 7

Hi guys, I'm trying to work on a form with jquery. I have a table with 9 cells, 9 inputs and 9 delete links. I want to delete de particular cell on which i've clicked delete, but cannot figure it out how. I am able to delete the first element with value="1" but not the rest. <table cellspacing="50"> <tr> <td><input type="text" name="arr[]" value="1"><a id="del">Delete</a></td> <td><input type="text" name="arr[]" value="2"><a id="del">Delete</a></td> <td><input type="text" name="arr[]" value="3"><a id="del">Delete</a></td> </tr> <tr> <td><input type="text" name="arr[]" value="4"><a id="del">Delete</a></td> <td><input type="text" name="arr[]" value="5"><a id="del">Delete</a></td> <td><input type="text" name="arr[]" value="6"><a id="del">Delete</a></td> </tr> <tr> <td><input type="text" name="arr[]" value="7"><a id="del">Delete</a></td> <td><input type="text" …

Member Avatar
Member Avatar
+0 forum 5

Hi, I haved a form where elements in a rows can be added by clicking on "Add item". Once the item is added, use can remove that item by clickon on the "remove" link. One of the fileds in the row has integer value and I want to added the values of all rows and show at the bottom as total of 100. Here is the sample page which I have provided the original sourse. http://equaser.com/aadev/dynamic-totals.html Originally it was selct list but I changed it to text field. Now it is not validating or adding. please help

Member Avatar
Member Avatar
+0 forum 2

I need to remove a certain color, like for example, 0xFFFFFF (Color.White) would remove all the white in an image. Thanks :)

Member Avatar
Member Avatar
+0 forum 4

I came across this project that could be really helpful.. if I was c++ literate. I know enough c++ to be dangerous and thats about it. Thanks in advance for anyone who wants to take a crack at it. ps credit to: http://www.codeproject.com/Articles/13839/How-to-Prepare-a-USB-Drive-for-Safe-Removal

Member Avatar
Member Avatar
+0 forum 1

hi experts, I have a new quesiton following what I asked before: http://www.daniweb.com/software-development/python/threads/436159/python-remove-lines-when-two-specified-words-in-the-same-line I am still new python user, and hope and get your help again. my task is to do the following Python Remove current and following 3 lines when two specified words in the same line I have a test.txt like this: BNBCD 1.00000000E+00 3.00000000E+00 0.00000000E+00 0.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 2.00000000E+00 BEUSLO 2.00000000E+00 3.00000000E+00 0.00000000E+00 0.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 2.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 2.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 2.00000000E+00 BEUSLO 3.00000000E+00 3.00000000E+00 0.00000000E+00 0.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 2.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 2.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 2.00000000E+00 BNBCD 4.00000000E+00 3.00000000E+00 …

Member Avatar
Member Avatar
+0 forum 8

1. **Remove the words where last character is a capital letter from a given sentence.**

Member Avatar
Member Avatar
+0 forum 1

>hey guys, i want to find duo array 2 D with same value at least 2 > value between $data1 and $data2, and when duo array 2 D founded save in array 3D > then duo array 2 D with same value founded **delete** > from **$data1 and $data2** purpose **quick search** duo array with same value, how > to use while loop to solve this case? $data1 = array( array( '7'=>'chelsea everton villa liverpool', '8'=>'everton villa liverpool manutd', '9'=>'villa liverpool manutd arsenal', '10'=>'liverpool manutd arsenal newcastle' ), array( '23'=>'milan inter juventus napoli', '24'=>'inter juventus napoli roma', '25'=>'juventus napoli roma …

Member Avatar
Member Avatar
+0 forum 3

how can revome the border or spacing between tr and td even i have border="0" cellpadding="0" cellspacing="0" in my table.

Member Avatar
Member Avatar
+0 forum 1

Can anyone teach me how to remove the background image in the form? i am trying to create a system that willn change its background color using option buttons but with the background image in place, the change in back color is not visible........ Please help me. Your immediate reply would be of great help to me... Thank you... yours truly, Akasekaihime ps: I am only new to vb 6

Member Avatar
Member Avatar
+0 forum 1

The End.