Escaping Forward Slash

./split2.sh: line 1: split/ssl/pop3s.txt: No such file or directory
sort: cannot read: split/ssl/pop3s.txt: No such file or directory

Hi there,

I am pulling data from the following source:

ssl/http
ssl/http
ssl/http-alt
ssl/https
ssl/https
ssl/https
ssl/https
ssl/https
ssl/https
ssl/ms-wbt-server
ssl/ms-wbt-server
ssl/pop3s

My Code I is taking from the list of data above. How can I escape it?

for i in `cat commontypes.txt`;do cat *.grep|grep "open.*$i"|cut -d " " -f 2 > "split/$i.txt" ;  sort -V "split/$i.txt" | sort -u ;done

Hello alvinoo,

It is obvious error there could be 2 reasons for this error.

1st: Either you should have mention /split in case /split is a mount point.
2nd: Or if your objective is to place files into current directory, where a directory named split is present. Then you have to make sure first directory split is present in current directory or make sure you have this directory present into your current directory.

Also your commands seems to be we could improve them in case you could let us know your complete objective like what you are trying to do with Input_file's data? Please do let us know more details with all conditions and samples(in code tags), so that we could help you more.

Thanks,
R. Singh

What do you want to escape?
What is ./split2.sh: line 1: ?
Does whatever your Code is work with the first eleven lines in your "source" (which I guess is called "commontypes.txt")?
How is line 12 different?

Hi Ravinder,

Split 

is in my current directory.
When I face situation like

ssl/http

it does not work whereas example like without

/

can work