![]() |
Re: Can't cd in bash script
One way would be
tr -d '\015' < yourfile.sh > yournewfile.sh (\015 means "octal 13", which is the CR or \r character) Or use an editor that can control this. I can't really recommend one though (I know vim can do it, but vim isn't really a good editor to recommend to someone who likes leafpad...) |
Re: Can't cd in bash script
Quote:
Code:
tr -d "\r" < oldname.sh > newname.sh |
Re: Can't cd in bash script
Quote:
Code:
:se ff=unix http://vim.wikia.com/wiki/File_format |
Re: Can't cd in bash script
1 Attachment(s)
I've compiled flip for you (see https://ccrma.stanford.edu/~craig/utility/flip/). Dead easy to check for file formats and flip between them.
Code:
[sbox-FREMANTLE_ARMEL: ~] > ./flip |
Re: Can't cd in bash script
Quote:
Just out of interest, wtf? :p |
Re: Can't cd in bash script
Quote:
http://en.wikipedia.org/wiki/Newline#History |
Re: Can't cd in bash script
Quote:
|
All times are GMT. The time now is 08:02. |
vBulletin® Version 3.8.8