08-14-2019
Hi,
Yes, you can provide ranges of special characters in both sed and tr or you can work with one character at a time. All the information that you require should be in the man pages on your system, you can try man tr this would be a good place to start.
Regards
Gull04
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How do I replace a space " " character at a particular position in a line?
e.g. I have a file below
$ cat i2
111 002 A a
33 0011 B c
2222 003 C a
I want all the 1st spaces to be replaced with forward slash "/" and the 3rd spaces to have 5 spaces to get the output below:
111/002... (8 Replies)
Discussion started by: stevefox
8 Replies
2. Shell Programming and Scripting
Hi,
I am working on a command that replaces some occurrences of quotation marks in file. The quotation mark cannot be the first or the last character in line and cannot be preceded or followed by a comma.
I am not an expert in regular expressions, but I managed to create the following... (2 Replies)
Discussion started by: piooooter
2 Replies
3. Shell Programming and Scripting
Hey all.
Easy question.
I have a (ksh) varaible x. It contains the following (for example): N557788
I want to replace the "N" with a "-".
I've done this before but for the life of me I cannot remember how I did it.
Thanks.
mtw (2 Replies)
Discussion started by: mixxamike
2 Replies
4. Shell Programming and Scripting
Hi
I want to replace ./testsed.ksh
with
testsed.ksh
./ is to be removed
scriptnm=`sed -e 's/\.///' $0
does not work
Please help (3 Replies)
Discussion started by: usshell
3 Replies
5. UNIX for Dummies Questions & Answers
Can we able to replace the character # in banner command with some other characters. Can we able to blink the character in Kornshell (1 Reply)
Discussion started by: sivakumar.rj
1 Replies
6. Programming
Hello, I need to do this in python but I'm just learning py and it's quite urgent.
I have a script I created and need an interactive python script to modify part of a line.
MY SCRIPT
#ligand prep. Uses 'ind' prefix. The initial ligand must be ind.pdb. This
#generates ind.pdbqt.... (0 Replies)
Discussion started by: gav2251
0 Replies
7. UNIX for Dummies Questions & Answers
Hi, I need to do a global search and replacement of a non-ascii character. Let me first give the background of my problem.
Very frequently, I need to copy set of references from different sources. Typically, a reference would like this:
Banumathy et al., 2002 G. Banumathy, V. Singh and U.... (1 Reply)
Discussion started by: effjay
1 Replies
8. Shell Programming and Scripting
I have below line in a unix file, I want to delete one character after "Â".
20091020.Non-Agency CMO Daily Trade Recap Â~V Hybrids
The result should be :
20091020.Non-Agency CMO Daily Trade Recap  Hybrids
i dont want to use "~V" anywhere in the sed command or any other command, just remove... (1 Reply)
Discussion started by: mohsin.quazi
1 Replies
9. Shell Programming and Scripting
Hi,,
I have the line below in a file:
$!VarSet |LFDSFN1| = '"E:\APC\Trials\20140705_427_Prototype Trial\Data\T4_20140705_Trial_Cycle_Data_13_T_Norm.txt" "VERSION=100 FILEEXT=\"*.txt\" FILEDESC=\"General Text\" "+""+"TITLE{SEARCH=NONE NAME=\"New Dataset\" LINE=1I want to write a script to change... (2 Replies)
Discussion started by: carlr
2 Replies
10. Shell Programming and Scripting
Hello Gurus,
I have a script developed...
#!/bin/bash
#---------------------------------------------------------------------
# This pScript will remove/replace the special characters fromfiles
#---------------------------------------------------------------------
trxdate="`date... (1 Reply)
Discussion started by: nanduedi
1 Replies
GMAN(1x) GMAN(1x)
NAME
gman - GTK+ based front-end for man, a good replacment for xman.
SYNOPSIS
gman
DESCRIPTION
Gman is a front-end for the manual page system. gman builds a database of all the available man pages and displays them in a list. Clicking
on an entry in the list makes gman launch another window with the manual page displayed in it.
Gman can launch more than one window at same time. The user can use the index/key word search function to look for the man pages that they
need.
It is simple, but it is useful.
OPTIONS
There are no command line options for gman, for now.
DISPLAY OPTIONS
Currently gman has 4 different modes to present the man pages, available as the following items in the View menu:
xTerm This will launch an X terminal emulator with the man output shown inside.
You can add the following line to your ~/.gman file in order to select the preferred X terminal emulator:
xterm_command = rxvt
GhostView
gman will present man pages in a GhostView window for you to view and print the man page.
This requires GhostView (command "gv") to be available on your system.
Evince gman will present man pages in an Evince window for you to view and print the man page.
This requires GNOME Evince (command "evince") to be available on your system.
LocalBrowse
gman will launch a web browser window to show you the man page.
This requires man2html and web browser (command "sensible-browser") to be available on your system.
NetBrowse
In this mode, you can view the pages with web browser and navigate from one man page to another by clicking the links in the man
pages.
This requires man2html, web browser (command "sensible-browser") and a HTTP server running on localhost.
FILES
~/.gman
Contains configuration information for gman, such as window size and paths where the manual pages are contained. For example,
v_size = 400
h_size = 300
xterm_command = rxvt
show_warning = 0
man_paths = /usr/local/man:/usr/local/share/man:/usr/share/man
For more information, see init_context() function in gman.c for all the options avialiable.
~/.gman is read by gman on startup, and written on exit.
SEE ALSO
man(1), man(7), xterm(1).
AUTHOR
Gman was written by a smart guy named Xinkai Wang <aakwxk@hotmail.com>.
Home page of gman is at:
http://homex.coolconnect.com/user/xkwang/gman/ <>
Gman May 2002 GMAN(1x)