On 04/24/2012 09:36 AM, jerrychaney wrote:
>
> jdmcdaniel3;2457985 Wrote:
>> I have a bash script called netinfo you can find here:
>>
>> netinfo - Read Network & PC Information into a Local Text File
>>
>> The output could be posted into SuSE Paste here:
>>
>> ‘SUSE Paste’ (SUSE Paste)
>>
>> Make sure to remove any sensitive data it might include and remember to
>> set the Delete After to Never.
>>
>> Thank You,
>
> I tried to use the script, but got this error.
>
> Code:
> --------------------
>
> /bin/bash^M: bad interpreter: no such file or directory
That ^M means that you have windows-type line endings of <CR><LF> rather than
the <LF> used by Linux. Open the script with vi. If it says [dos] in the status
line, then use the command ‘:set ff=unix’. If does not say [dos], then enter the
command ‘:%s/\r//’. After eiter command, then type ZZ to save the modified
result and exit.