Sponsored Content
Full Discussion: Replace with spaces
Top Forums Shell Programming and Scripting Replace with spaces Post 302509687 by joeyg on Thursday 31st of March 2011 12:37:46 PM
Old 03-31-2011
tr command?

Code:
$ echo @ABC123DEF#
@ABC123DEF#

$ echo @ABC123DEF# | tr "[:alnum:]" " "
@         #

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replace spaces recursively

Hi, I have a directory with files and sub-directories (sub-directory depth might go upto 5). There will be one or more spaces (continuously or anywhere in the file name) which need to be replaced with HYPHENs. How can i replace all SPACE occurances with HYPHEN in file/dir names recursively. (2... (5 Replies)
Discussion started by: prvnrk
5 Replies

2. Shell Programming and Scripting

Remove spaces between charc and replace it with ','.

Hi, Below is my output file: (The below line has multiple spaces bet charc and I want to replace spaces with "," only for the first line) NYCCMS97KJ931 01-JUN-08 1214957 I want this to be: ... (5 Replies)
Discussion started by: smc3
5 Replies

3. Shell Programming and Scripting

Replace spaces

Hi guys, so I have another issue. Can I use sed to replace spaces in a string or variable with %20 I am having trouble with using curl on URL's containing spaces Thanks! (12 Replies)
Discussion started by: tret
12 Replies

4. Shell Programming and Scripting

how to replace . with 100 spaces

i have a file like:: $ cat space asd fghj itkg now i want to replace the next line with . and thn this . with the 100 spaces. cat space | tr '\n' '.', it woked for me, to replce the new line to . Now i want to replace this . with 100 spaces. Thanks in advance. (10 Replies)
Discussion started by: Prashant Jain
10 Replies

5. UNIX for Dummies Questions & Answers

replace characters with spaces between tag

I have a file where in some records are having the <Start> and <End> tag. There is data before the start tag , between the tages and after the End tag. I want to replace everything between the start & end tag with equivalent spaces. Input File afsdfaksddfs<start>12678<end>sgdfgdfsf... (6 Replies)
Discussion started by: varunrbs
6 Replies

6. Shell Programming and Scripting

replace 2 spaces by one

Dear Friends, I have a flat file from which I want to remove single "space". And, wherever two spaces are provided it should replace it by only one space. E.g. I have N A T I O N A L E D U C A T I O N F O R O R G AN I S A T I ON S I want NATIONAL EDUCATION FOR ORGANISATIONS Please... (5 Replies)
Discussion started by: anushree.a
5 Replies

7. UNIX for Dummies Questions & Answers

how to replace spaces with '_' in a file?

Hello #I have a file with a list of sequences; the sequence name is the line starting with '>'. $cat infile >AluYa5 SINE1/7SL Homo sapiens ggccgggcgcggtggctcacgcctgtaatcccagcactttgggaggccgaggcgggcggatcacgaggtc aggagatcgagaccatcccggctaaaacggtgaaaccccgtctctactaaaaatacaaaaaattagccgg... (11 Replies)
Discussion started by: jdhahbi
11 Replies

8. Shell Programming and Scripting

Replace spaces at a specific Location

Hello All, I have a comma separated file which needs to be loaded to the database. But, I need to trim the white spaces for a specific column before its loaded. Below is the sample line from the input file: 690,690,0575,"01011940","01011940", , , , , ,36720,36722,V2020,V2999,... (6 Replies)
Discussion started by: Praveenkulkarni
6 Replies

9. Shell Programming and Scripting

String replace that has spaces

cat rf|nawk '/Use SSL= 0/{n+=1}{if (n==3){sub("Use SSL= 0","Use SSL= 0x1",$0)};print }' > rf2Fails. sed 's/Use SSL= 0/Use SSL= 0x1/g' rf > rf2Fails. In addition, the goal is to ONLY replace the 2nd occurence of the... (15 Replies)
Discussion started by: rfransix
15 Replies

10. UNIX for Dummies Questions & Answers

How to replace two or more spaces with one comma?

I'm using sh on hp-ux. I've got a file that looks like this. -5.65 175 -16.17 160 -13.57 270 -51.72 260 -8.30 360 -42.71 460 -.38 375 -.20 375 -4.15 170 -21.53 560 -18.84 360 I'd like to replace all the whitespace between the columns with one comma. I can't... (4 Replies)
Discussion started by: Scottie1954
4 Replies
obm-moz(1)							 Openbox Pipe Menu							obm-moz(1)

NAME
obm-moz - a pipe-menu for openbox SYNTAX
obm-moz [options] DESCRIPTION
Obm-moz is a pipe menu for openbox. It translates any mozilla-compatible bookmarks into an openbox menu. If no arguments are given, it'll try to find your bookmarks. A bookmarks folder can be passed as an argument, it'll try to find it and build the menu out of that folder. More information about pipe-menus can be found on http://icculus.org/openbox/index.php/Openbox:Pipemenus OPTIONS
-h, --help Show this help message and exit -f, --firefox Look for Firefox bookmarks -b FILENAME, --bookmarks=FILENAME Specify the path to the bookmarks.html file -r ROOT, --root=ROOT Root folder of the bookmarks -n BROWSER, --navigator=BROWSER Command to run the web browser. EXAMPLES
obm-moz -b "/path/to/bookmarks.html" -r "Bookmarks Toolbar Folder" AUTHORS
obm-dir was written by Manuel Colmenero <mkolme@gmail.com> as part of obmenu. This manual page was originally written for the Debian GNU/Linux system by Davide Truffa <davide@catoblepa.org>. SEE ALSO
obmenu(1), obm-dir(1), obm-nav(1), obm-xdg(1), openbox(1) Davide Truffa 1.0 obm-moz(1)
All times are GMT -4. The time now is 03:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy