Mac OS X Script Continuation Character?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mac OS X Script Continuation Character?
# 1  
Old 07-21-2003
Mac OS X Script Continuation Character?

Some of my scripts have very long commands that go beyond the horizontal scroll limits of my screen (1024 x 768), even with a very small font. Is there a continuation character (like the option+l "ell") in AppleScript that will let me break up the line?

Right now I just press a hard return to inspect the line and then press delete to bring it back toghether.

Thanks in advance...Cassj
# 2  
Old 07-21-2003
Hi,

Different solutions here.

ksh -o vi

will give you a Korn Shell with vi options.
This will make you be able to do "<Esc> +<k>", each time you press <k> you get the previous command. When submitting the <v> then it is opened in the text editor vi, very usefull editor Smilie

If you're done viewing, you just type ":wq"
But, be aware !! your comand will be executed by now !!

When entering a long command from the commandline you can do it as :

$ This is a very long \
> command that has lots of \
> parameters and I want to see \
> them all on my screen before\
> I hit enter
ksh : This : not found
$

As a little joke of course you get the error of this unknown command, but it realy works this way.

For changing vertical terminal settings (just to know), open a new terminal typing :
"nohup dtterm -sl 20000 -title Large_terminal"

@yourservice
David
# 3  
Old 07-21-2003
Thanks davidg fro such a quick answer. I'll try what you've suggested.
Wow! The service here is great! :-)
-Cassj
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash Script: Echo continuation across many lines

I am writing a bash script that automatically generates a macro program. I want to have an echo on multiple lines and getting an error /home/chaos/instru-correct.sh: line 309: command line is: command not found I am using echo "# The general synopsis of the $mfl" \ ... (2 Replies)
Discussion started by: kristinu
2 Replies

2. Shell Programming and Scripting

Continuation lines to be glued back to original line

I am parsing a log with this format: 06:36:12.230 details here 06:36:12.250 details here 06:36:12.260 details here continuation here 06:36:12.360 details here As you can see, some detail info contains one or more "\n" and it breaks my line-oriented parsing. I need to get those... (3 Replies)
Discussion started by: migurus
3 Replies

3. Shell Programming and Scripting

bash: convert mac address to 16 character format

Hi there Im not quite sure how i can do this, but i am retrieving the mac address from boxes, which in some instances is arriving in its shortened format (i.e. dropping the leading zeros)... for example 0:3:BA:1:E:84 Im trying to figure out a way of converting the single character... (3 Replies)
Discussion started by: rethink
3 Replies

4. Shell Programming and Scripting

Script with error output but continuation in script?

I have written a basic fetching script. The script logs into an FTP site, downloads a .zip file, then unzips and moves the files to the necessary folders, then deletes them, etc. The problem I have is if one of the files no longer exists on the FTP site or another part of the script fails, then... (3 Replies)
Discussion started by: daem0n
3 Replies
Login or Register to Ask a Question