Search Results

Search: Posts Made By: LuminalZero
8,283
Posted By LuminalZero
Not in notepad, in vim. Somehow it had saved it...
Not in notepad, in vim. Somehow it had saved it as a dos file. I used unix2dos on it and now it works flawlessly though. Thanks for the help everyone. :D
8,283
Posted By LuminalZero
Ok, it works pretty good, except a couple things:...
Ok, it works pretty good, except a couple things:
Instead of the output being
winfile
it comes out as
winfile?.
After entering the command at the command line, it responds:
: command not found....
8,283
Posted By LuminalZero
I made the script file cv.sh: tail -n +15...
I made the script file cv.sh:


tail -n +15 < $1 | sed 's/$/\r//' > winfile
Then on the command line I typed:
./cv.sh test.cpp
8,283
Posted By LuminalZero
I just tried that, and it reports: sed: -e...
I just tried that, and it reports:

sed: -e expression #1, char 8: unknown option to `s'
: command not found
8,283
Posted By LuminalZero
What does the whole " | sed 's/$/\r//' > winfile"...
What does the whole " | sed 's/$/\r//' > winfile" part do?
8,283
Posted By LuminalZero
bash script to display tail
Hi everyone, I'm trying to write a script to format a file using unix2dos. I want to output all but the first 14 lines in a file. Then I want to pipe this to unix2dos to convert the output to a...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 07:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy