# Path data

**URL:** <https://community.unix.com/t/path-data/149205>\
**Category:** Shell Programming and Scripting\
**Created:** [June 16, 2004, 9:39am UTC](https://community.unix.com/t/path-data/149205 "2004-06-16T09:39:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ithomp](https://community.unix.com/letter_avatar/ithomp/32/5_5575768a8748004e209b776fc1b2916d.png) [@ithomp](https://community.unix.com/u/ithomp)\
**Post date:** [June 16, 2004, 9:39am UTC](https://community.unix.com/t/path-data/149205/1 "2004-06-16T09:39:23Z")

</div>

I trying to convert the path data where \ are used to /. Can anyone help as I am obviously doing something incorrect!

echo "File One"  
read fileone | sed 's#\\#/#g'  
echo "File Two"  
read filetwo | sed 's#\\#/#g'  
diff $fileone $filetwo  
pg

---

<div class="post-metadata">

**Author:** ![Bab00shka](https://community.unix.com/letter_avatar/bab00shka/32/5_5575768a8748004e209b776fc1b2916d.png) [@Bab00shka](https://community.unix.com/u/Bab00shka)\
**Post date:** [June 17, 2004, 5:55am UTC](https://community.unix.com/t/path-data/149205/2 "2004-06-17T05:55:23Z")

</div>

try using

cat file1 | sed 's/\\/\//g' \> file1.new

file1.new should have the \ now as /

Cheers  
Helen
