![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| perl split funciton - special character "/" | deepakwins | UNIX for Dummies Questions & Answers | 5 | 02-07-2008 09:19 PM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-19-2007 10:52 PM |
| "sed" to check file size & echo " " to destination file | jockey007 | Shell Programming and Scripting | 6 | 11-13-2007 06:00 PM |
| extran NUll character added after end of line "\n" | arunkumar_mca | UNIX for Dummies Questions & Answers | 1 | 11-12-2007 10:23 AM |
| deleting newline characters but not the "true" \n character | caddyjoe77 | Shell Programming and Scripting | 1 | 08-15-2007 07:21 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
replacing the character "\" in a file
I am using sed to replace things like "," and tabs in a file, but what is the code for replacing a \ ????
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Hope this will help you
Code:
echo "hai \\" | sed 's/\\/replaced/' |
|
#3
|
|||
|
|||
|
Hi there,
this is what I'm running from the command line sed -e s/\\/ / TalkTalk5.txt > bob.slash but I'm still getting a garbed error message. Any ideas ????? |
|
#4
|
||||
|
||||
|
Quote:
Code:
sed -e 's/\\/ /' TalkTalk5.txt > bob.slash |
|
#5
|
|||
|
|||
|
Cheers mona,
I thought I was going mad - that what happens when you look at the screen for too long |
|
#6
|
||||
|
||||
|
It happens
|
||||
| Google The UNIX and Linux Forums |