R
R
Ruslan2014-09-20 00:19:39
bash
Ruslan, 2014-09-20 00:19:39

How to read a line with backslashes in bash?

For example
$ test.sh \\computer\other\filer.zip

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Petrikov, 2014-09-20
@iRusel

Either put in quotes or escape with slashes:

test.sh '\\computer\other\filer.zip'
test.sh \\\\computer\\other\\filer.zip

Yes, and you have slashes in win format, not nix, for nix in the other direction.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question