LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2005, 05:46 PM   #1
tapanga
Member
 
Registered: Sep 2003
Distribution: Mandrake 9.1
Posts: 41

Rep: Reputation: 15
Bash Script Help


Hi

I wonder is someone could tell me how i avoid having those special charachters that look like a square replaced by a carriage return when coding in Bash Script???

I have written a program to extract data from a txt file and create a new txt file - bu i keep getting these weird little icons that look like a square in place of carriage return. Please assist.


thanks in advance
 
Old 08-30-2005, 05:55 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
What program are you using to edit the file?
 
Old 08-30-2005, 08:20 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If it will not compromise the security of your system, could you submit a copy of the script? To be able to see the code you have written would be a great help to solve the problem.

As a side note: if any commands you try to execute from the script are longer than the terminal line settings (probably 72 characters per line), then the command line must continue on the next line. Bash requires a special character to tell it that the command continues to the next line. That character is the backslash (\).

So, if the command line must continue to another line, end each line with [ \]. That's spacebar backslash (a space between the last character of the command line, followed by the backslash character) then continue the command on the next line. You may repeat the [ \] as often as needed to complete the command.

Another side note: you are using Mandriva. What is your native language, and what is the language in which Mandriva was installed. It could also be that you did not install language support for the language you are using.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Script zaicheke Programming 3 11-07-2004 06:32 PM
bash script how to? Lleb_KCir Programming 11 05-21-2004 07:03 PM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
bash script - incrementing a filename in a script tslinux Programming 10 08-05-2003 11:58 PM
bash script prob: how can i tell the script that a 'dd' has finished? Frustin Linux - General 2 04-02-2003 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration