08-13-2008
thanks for reply me,
i tried with both but it shows like this
This#is#a#line The#should#be#changed
plz help me....
Quote:
By "tab space" do you mean two characters, ASCII
9 and ASCII 32, or one character, just ASCII 9?
If the former, 's/ \t/#/' without the [ ]
If the latter, just 's/\t/#/' should work, although the command line you posted should also (accidentally) work.
If your sed doesn't understand \t then try entering a literal tab. In many shells, you type ctrl-v tab to get an actual tab into your command line.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a 30 column tab delimited record file. I need to extract the first 10column. The following command to cut was not working
cut -f 1-10 -d "\t" filename.
Could any one keep on this .
Thanks in Advance (4 Replies)
Discussion started by: vinod.thayil
4 Replies
2. Shell Programming and Scripting
Hi All,
I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text.
An example of 4 lines in my file is:
1. MatchText_randomNumberOfText moreData ReplaceMe moreData
2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Discussion started by: Crypto
4 Replies
3. Shell Programming and Scripting
Hi,
how to replace new line with tab in sed ...
i used
sed -e 's/\n/\t/g' <filename >
but its not working (1 Reply)
Discussion started by: mail2sant
1 Replies
4. Shell Programming and Scripting
Hi All
I am having problem in substitution of any number of spaces, or a combination of space and tab in between strings in the lines of text file. Is there any way out in Perl? Please help me.
e.g.,
Say the input is in the following format:-
XX yyy zzz... (1 Reply)
Discussion started by: my_Perl
1 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Is there a direct command to check if the delimiter in your file is a tab or a space? And how can they be converted from one to another.
Thanks,
G (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
6. UNIX for Advanced & Expert Users
Hi,
I need help. I have XML file as below
<a n="infoLevel">
<v s="true"/>
</a>
<a n="localAddr">
<v s="server.host.com"/>
</a>
<a n="ListenPort">
<v s="21111"/>
</a>
I need to find variable "ListenPort" in line and then replace... (4 Replies)
Discussion started by: rdtrivedi
4 Replies
7. Shell Programming and Scripting
Hi
Need your help to assign the string to a variable from a line which has no fixed delimter in unix.
for example , my file contains
Name="report""
File Name one="test1"
File Name two="test2"
now how do I read report , test1 and test2 ?
var1=report
var2=test1
var3=test2
... (1 Reply)
Discussion started by: rashmisb
1 Replies
8. Shell Programming and Scripting
Dear All,
i want to search particular string and want to replance next line value.
following is the test file.
search string is
tmp,???
,10:1 "???" may contain any 3 character it should remain the same and next line replace with ,10:50
tmp,123 --- if match tmp,??? then... (3 Replies)
Discussion started by: arvindng
3 Replies
9. Shell Programming and Scripting
Hi,
I have two files like:
file1
chr1 40
chr1 50
chr2 10
chr2 60
file2
chr1 30
chr1 50
chr2 15
chr2 20
and want to get the difference of column 2 when column 1 is the same in both files. (4 Replies)
Discussion started by: linseyr
4 Replies
10. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 Replies
LEARN ABOUT SUSE
transmission-edit
TRANSMISSION-EDIT(1) BSD General Commands Manual TRANSMISSION-EDIT(1)
NAME
transmission-edit -- command-line utility to modify .torrent files' announce URLs
SYNOPSIS
transmission-edit [-h] [-a url] [-d url] [-r search replace] torrentfile(s)
DESCRIPTION
transmission-edit command-line utility to modify .torrent files' announce URLs
OPTIONS
-h --help
Show a short help page and exit.
-a --add URL
Add an announce URL to the torrent's announce-list if it's not already in the list
-d --delete URL
Remove an announce URL from the torrent's announce-list
-r --replace search replace
Substring search-and-replace inside a torrent's announce URLs. This can be used to change an announce URL when the tracker moves or
your passcode changes.
EXAMPLES
Update a tracker passcode in all your torrents:
$ transmission-edit -r old-passcode new-passcode ~/.config/transmission/torrents/*.torrent
AUTHORS
Jordan Lee
SEE ALSO
transmission-create(1), transmission-daemon(1), transmission-edit(1), transmission-gtk(1), transmission-qt(1), transmission-remote(1),
transmission-show(1)
http://www.transmissionbt.com/
BSD
June 9, 2010 BSD