I have a directory question where I ask the user which entry he wants to delete...
Code:
echo "Which entry?"
read entry
sed '/^'$entry'/d' file
This code does in fact delete that particular entry...
HOWEVER, when I go to inquire about that same entry, it still populates like it was never deleted.
I have a Slider, Model SL101 with current firmware, Android 4.0.3. I love it but...
I have terrible problems with text entry boxes on web forms. Often when I select a text entry box, the default prompt text (which is usually only there until you select it) will become my text entry, and I have to erase it before continuing.
Suppose I have a file containing :-
1 Apple $50
2 Orange $30
3 Banana $10
4 Guava $25
5 Pine@apple $12
6 Strawberry $21
7 Grapes $12
In the 5th row, @ character inserted.
I have embedded a Gtk.Entry box into a Gtk.Toolbar, however changing the requested width of practically anything (i.e. the Gtk.ToolItem that contains the Gtk.Entry and the Gtk.Entry itself) doesn't change the size of the Gtk.Entry. What is that I'm doing wrong?
Update Manager will not update although I have over 100 updates to do I get a error message like this:
installArchives() failed:
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
Extracting templates from packages: 29%%
Extracting templates from packages
When I run the following script with some arguments like arg1 arg2 arg3:
#!/bin/bash
zenity --entry --text="$@"
zenity creates an entry dialog with this text: "arg1" whereas I expect "arg1 arg2 arg3"
If I use a variable like the following script it shows all arguments for the entry text.
#!/bin/bash
text="$@"
zenity --entry --text="$text"
Whats the difference between these scripts?
This is an unexpected behavior in Thunar: The templates must reside in the ~/templates folder.The problem is that they must be real files, not symlinks.- If ~/templates is a symlink to another folder (for instance ~/Dropbox/templates).
After picasa/wine installation, I have wine as the top entry in my main menu.
I want to move it to another place in the menu, but it does not show up in settings->main menu (alacarte).
Googling returns mostly posts of people who uninstalled wine but still had the menu entry. I want to keep wine and the menu entry, but would just like to move it to the accessories-category if possible.
Hi
I am trying to insert a block of text 2 lines above a pattern match using sed
eg
Code:
#Start of file entry
{
}
#End of file entry
new bit of text has to be put in just above the } eg
Code:
#Start of file entry
{
New bit of text
}
#End of file entry
I have tried the
Code:
sed /Pattern/i "text" filename
but it keeps getting garbled with the \n