08-20-2009
I'm using gedit editor and working on bash(sh files)
Sorry for my english. My language is Spanish
---------- Post updated at 08:15 PM ---------- Previous update was at 08:02 PM ----------
I tried this:
sed '/^<option value="50">Seleccione una version...</option>/<option value="50">Select version</option>'
file > newfile
but the bash interpret leaves no place < or > or / in the text to insert.
I think it is confused with bash syntaxis.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello! I have a text file containing
some text : : : bla
other text : : : bla
any text : : : bla
containing 3 columns separated by the ':' sign.
Now i want to insert 'this' in the 2nd line after the 2nd column-deliminiter (i.e. into 3rd column), like
some text : : : bla
other text :... (1 Reply)
Discussion started by: knoxo
1 Replies
2. Shell Programming and Scripting
Dear Folks :),
I am new to UNIX scripting and I do not know how can I insert some text in the first column of a UNIX text file at command promtp.
I can do this in vi editor by using this command :g/^/s//BBB_
e,g I have a file named as Test.dat and it containins below text:
michal... (4 Replies)
Discussion started by: Muhammad Afzal
4 Replies
3. Shell Programming and Scripting
Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
Discussion started by: iamgeethuj
4 Replies
4. Shell Programming and Scripting
Hi All,
Can someone pls help me to insert some text on a file.
my file contains something like below..
AKBULBU,
BALUMIL,
BATCH,BATCH
BOARROB,
BOTAKAT,
C57896,
CAKIOZE,
CHECMER,
CICOFRA,
CISZPAW,2194485
I want output as
USER_ID, LOGIN_ID (6 Replies)
Discussion started by: harshakusam
6 Replies
5. Shell Programming and Scripting
I need help with this please:
I have this text:
<li><a href="login.php">Ingresar</a>
and I need insert this text below:
<li><a href="http://localhost/dummysila/">anything<a></li>
help please!
Note: all this with bash....command sed I think.... (1 Reply)
Discussion started by: bobbasystem
1 Replies
6. Shell Programming and Scripting
Input:
fstab is a configuration
file that contains information
of all the partitions
and storage devices
in your computer.
The file is located under /etc,
so the full path
to this file is /etc/fstab.
The >>>>> characters would be replaced by some texts.
For example if i run a... (5 Replies)
Discussion started by: cola
5 Replies
7. Shell Programming and Scripting
sed 's/$/TEST/g' will insert TEST at the end of each line. i want to insert TEST at column 64 (7 Replies)
Discussion started by: lawsongeek
7 Replies
8. Shell Programming and Scripting
Hi,
I have a single value in insertval file. I want to load that value to database with the current date. I tried the below code but it is inserting <NULL> to database and echo $c is also null.
cat insertval | awk -F ' ' '{print $1}' > c
echo c=$c
data=`sqlplus -s user/pwd@hostname <<EOF ... (5 Replies)
Discussion started by: Neethu
5 Replies
9. Shell Programming and Scripting
I want to put a particular text, say, the hash '#' before each of the first n lines of a file.
How can I do that? (4 Replies)
Discussion started by: hbar
4 Replies
10. Shell Programming and Scripting
Hi,
I am trying to check for missing dates in a file and would want to insert the missing date into the file.
Currently the script is as below
#!/bin/ksh
dates="dates"
cat ${dates} | grep -v "^#"
curr_month=`date '+%m`
curr_day=`date '+%d`
curr_year=`date '+%Y`
#curr_month=02... (7 Replies)
Discussion started by: newbie_01
7 Replies
LEARN ABOUT SUNOS
gnome-text-editor
gedit(1) User Commands gedit(1)
NAME
gnome-text-editor, gedit - Limited functionality text editor for the GNOME desktop.
SYNOPSIS
gnome-text-editor [--debug [-section]] [gnome-std-options] [--help] [--new-document] [--new-window] [--quit] [filename]
gedit [--debug [-section]] [gnome-std-options] [--help] [--new-document] [--new-window] [--quit] [filename]
DESCRIPTION
The gnome-text-editor application is a text editor for the GNOME desktop. The application is also called gedit. You can use gedit as a
shorter command to start the application. The application enables you to edit multiple documents at the same time. Each document resides in
a specific tabbed section of the application window.
When you start the application from the command line, you can specify one or more filenames. When gedit starts, the application opens all
files that you list on the command line.
OPTIONS
The following options are supported:
--debug [-section] Run gedit in debug mode. In debug mode all the functions that are being called dump the function names to the con-
sole. You can specify the following sections for debugging:
o window
o commands
o document
o file
o plugins
o prefs
o print
o search
o undo
o view
o recent
Run gedit --help for more information.
gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information.
--help Print the command line options.
--new-document Create a new top-level document or tabbed section in an existing instance of gedit.
--new-window Create a new top-level window in an existing instance of gedit.
--quit Quit an existing instance of gedit.
EXTENDED DESCRIPTION
The gedit application accepts pipes, so you can specify a pipe after another command, to load the output of the command into gedit. For
example:
example% ls -l | gedit
EXAMPLES
Example 1: To Edit an ASCII File Named document.txt
example% gedit document.txt
Example 2: To Add a New Tab That Contains an ASCII File Named book.txt
example% gedit --new-document book.txt
Example 3: To Add a New Top-Level Window That Contains an ASCII File Named testfile.txt
example% gedit --new-window testfile.txt
EXIT STATUS
The following exit values are returned:
0 Application exited successfully.
>0 An error occurred.
FILES
The following files are used by this application:
/usr/bin/gnome-text-editor
The executable file for the gnome-text-editor application.
/usr/bin/gedit
A symbolic link to the gnome-text-editor executable file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-text-editor |
+-----------------------------+-----------------------------+
| | |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
gnome-std-options(5), libgtksourceview-1.0(3)
Online Help gedit manual.
NOTES
This man page was written by the following people: Paolo Maggi, Chema Celorio, James Willcox, Federico Mena Quintero.
Updated by Brian Cameron, Sun Microsystems Inc., 2003, 2004.
SunOS 5.10 31 Aug 2004 gedit(1)