---------- Post updated at 01:55 AM ---------- Previous update was at 01:46 AM ----------
I have one more query in second part of sed
How do i can insert another condition into the above command
Example:
in the same line i have to check wther the 30th position is R or S or V
i mean below is the condition
1)The should starts with 5900
2)The 30 position is R or S or V .. then i have to change to some text
Hi I have a spaced filled file having records like below:
What I want is to read line having RT3 at position 17-19 then go to position 2651 check the 18 characters (might be space filled till 18 characters). This position should have a... (6 Replies)
I am trying to use sed to replace specific characters at a specific position in the file with a different value... can this be done?
Example:
File:
A0199999123
A0199999124
A0199999125
Need to replace 99999 in positions 3-7 with 88888.
Any help is appreciated. (5 Replies)
Hello
I want to add some value at the specific position.
My file has data like
Hello
Welcome to UNIX Forums
Need Assistance
I want to add some value at the end but at same character position for all lines.
I want my output file to have data like :
Here '_' represents blanks.... (3 Replies)
I'm drawing a blank on how to use sed to replace selectively based on position in the string (vs nth occurence):
hello.|there.|how.|are.|you.|
I want the period removed in the 3rd item (as defined by the pipe delimiter) if a period is present. So the result in this case would be:
... (2 Replies)
I asked this before, but my problem got more complicated. Heres what I am trying to do:
I'm trying to replace a string at a certain location with another string.
Heres the file I'm trying to change:
\E
I want to replace the escape code at the 3rd line, 2nd column with this escape code... (3 Replies)
Hi,
I have a fixed width file.
The way this file works is say for example there are 30 columns in it each with different sizes say 10,5,2, etc...
If data in a field is less than the field size the rest of it is loaded with spaces.
I would like an awk command to that would replace
I have... (8 Replies)
Need command for position based replace:
I need a command to replace with 0 for characters in the positions 11 to 20 to all the lines starts with 6 in a file.
For example the file ABC.txt has:
abcdefghijklmnopqrstuvwxyz
6abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz... (4 Replies)
Hi,
I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies
9. Post Here to Contact Site Administrators and Moderators
In file, we have millions of records each of 1000 in length. And at specific position say 800 there is a space, we need to replace it with Character X if the ID in that row starts with 123.
So far i have used the below which is replacing space at that position to X but its not checking for... (3 Replies)
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT SUSE
vinagre
VINAGRE(1) General Commands Manual VINAGRE(1)NAME
vinagre - a remote desktop viewer for the GNOME Desktop
SYNOPSYS
vinagre [OPTIONS] [server][::port|:display]
DESCRIPTION
vinagre is a remote desktop viewer for the GNOME desktop. It can support many protocols using a plugin system. Current plugins exist for
VNC and SSH. Vinagre has many features, among others:.
- Support for multiple connections simultaneously
- Bookmarks and history support
- Avahi integration
- GNOME keyring integration
- GNOME panel applet to quickly launch vinagre to access VNC servers
- You can connect to a VNC server by double clicking on a .vnc file when using nautilus.
OPTIONS
Help Options:
-?, --help
Show help options
--help-all
Show all help options
--help-gtk
Show GTK+ options
Application Options:
--help-vnc
Show VNC options
-F, --file=filename
Opens a .vnc file
-f, --fullscreen
Open vinagre in fullscreen mode
-n, --new-window
Create a new toplevel window in an existing instance of vinagre
--display=DISPLAY
X display to use
Run 'vinagre --help' to see a full list of available command line options
OPERANDS
The following operands are supported:
[server][::port|:display]
Specifies the VNC server to connect to. The VNC server can be either a hostname, or an IP address. If the server is an IPv6 address,
it must be enclosed by square brackets. The address can optionally be followed by two colons (::) and the VNC port number, or alter-
natively by one colon (:) and the display where Vinagre should run. If a port is not specified, default value of 5900 will be used.
If the value is lower than 1024, 5900 will be added to it. For example, ":0" means "5900" and ":1" means ":5901". If only a port is
specified, but not the hostname, localhost will be assumed. Possible values for the display are between 0 and 1024. If a display
number greater than 1024 is specified, it will be assumed to be a port. Note that you can't specify the port and the display at the
same time.
EXAMPLES
Example 1: Start vinagre from the command line
example% vinagre
Example 2: Create a new top-level window
example% vinagre --new-window
Example 3: Connect to a specified VNC server and port
example% vinagre snoopy::5900
Example 4: Connect to a specified IPv4 address and port
example% vinagre 192.168.1.35::2700
Example 5: Connect to a specified IPv6 address and port
example% vinagre [2001:0db8:0:0:0:0:1428:57ab]::2700
Example 6: Connect to a VNC server specified by a .vnc file
example% vinagre -F snoopy.vnc
Example 7: Connect to localhost on a specified port in fullscreen mode
example% vinagre -f ::5900
SEE ALSO
Vinagre help manual
AUTHOR
Vinagre was written by Jonh Wendell <wendell@bani.com.br>
This manual page was written by Emilio Pozuelo Monfort <pochu@ubuntu.com> and Halton Huo <halton.huo@sun.com>.
User Commands August 12th 2009 VINAGRE(1)