Sponsored Content
Top Forums UNIX for Advanced & Expert Users Truncation Occurs When Outputting Shell Script to stderr Post 302346972 by methyl on Monday 24th of August 2009 02:02:29 PM
Old 08-24-2009
Might need to set your terminal to "wrap" (on the terminal not in unix) to see the full line on the screen.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

expr not outputting properly.. bsd sh script

When i run sh -x test.sh, expr outputs x=expr $x + 1 instead of doing the arithmetic.. been working on this overnight.. and its being a pain in the arse if you ask me.. :confused::confused: #!/bin/sh #script for downloading numerical filenames chap=1 p=1 count=0 x=1 while do if ... (2 Replies)
Discussion started by: aspect_p
2 Replies

2. Shell Programming and Scripting

simple count script outputting mass errors

script outputting cant find anything wrong with the script either... : #!/bin/sh #count execution script time=0 while do if then time=`expr $time + 1` if then echo "The current tick is 100" fi fi (2 Replies)
Discussion started by: aspect_p
2 Replies

3. Shell Programming and Scripting

Exiting from script when error occurs

Hi Friends, Is it possible to exit nicely(ie, to echo a message with the error occurred) from a shell script(quiet a big one :)) once it encounter an error in between the lines? For example, in my script I am calling the command mkdir and sometimes (when the directory already exists) it... (4 Replies)
Discussion started by: Sreejith_VK
4 Replies

4. Shell Programming and Scripting

Script Assistance - Outputting to file with Awk

I'm trying to take a list of domains, find out the MX resolve it to IP then find out what the NS is and output the contents to a new file. The only problem i'm having is when checking the Ip or host of the MX i can only get it to print the column with the MX record and the results of the host... (1 Reply)
Discussion started by: spartan22
1 Replies

5. Shell Programming and Scripting

Need to replace the first word of a line if it occurs again in the next line(shell)

Hi folks, have a look into the attachment, i am not familiar with unix, can you please help me in this regard. thanks in advance, :) regards, Geeko (4 Replies)
Discussion started by: geeko
4 Replies

6. Shell Programming and Scripting

write a perl script or kornshell reading a two files and outputting to comma format

Hello Can someone help me to write a perl script or kornshell reading a two files and outputting to comma format. Here is the two files listofdisks.txt id, diskname, diskgroup, diskisze(GB), FC 1, CN34, GRP1, 30, FC_CN34 2, CN67, GRP5, 19, 4, VD1, GRP4, 23, FC_VD1 6, CF_D1, ... (0 Replies)
Discussion started by: deiow
0 Replies

7. Shell Programming and Scripting

Writing to the stderr of a script

I have Mac OS X, and I wrote a bash shell script that does some encryption of files. When the user of the script does something wrong I want it to send an error message to the stderror of the script. Here's the code snippet I have: printf "$1: File not found\nNote: This script will only work... (6 Replies)
Discussion started by: Ultrix
6 Replies

8. Shell Programming and Scripting

BASH script outputting strange file formats

Hi I am very new to using BASH, but I have a problem with a piece of script that I have been working on. Basically the script goes through a mailbox file looking at particular aspects of the file, for example how many spamwords there are email address etc. It does this pretty well except for an... (13 Replies)
Discussion started by: 9aza
13 Replies

9. Shell Programming and Scripting

Capturing stderr in ksh script within a script

I have seen lots of entries on stderr and stdout, but I did not see a solution to my question. In running a script, I call another script. I want to capture output and error messages from the called script. I am able to redirect the stdout from the called script to my output file, but I don't... (2 Replies)
Discussion started by: timtoben
2 Replies

10. Shell Programming and Scripting

Shell script to execute condition until an event occurs

I need a script to keep polling "receive_dir" directory till "stopfile" get written in the directory. This has to run despite empty directory. So far i have this but fails if receive_dir is empty with no files with "unary operator expected". Help !! #!/usr/bin/ksh until do for i... (1 Reply)
Discussion started by: iaav
1 Replies
ul(1)							      General Commands Manual							     ul(1)

Name
       ul - process underscores for terminal

Syntax
       ul [-i] [-t terminal] [name...]

Description
       The  command  reads  the  named files (or standard input if none are given) and translates occurrences of underscores to the sequence which
       indicates underlining for the terminal in use, as specified by the environment variable TERM.  The -t option overrides  the  terminal  kind
       specified  in  the  environment.  The file /etc/termcap is read to determine the appropriate sequences for underlining.	If the terminal is
       incapable of underlining, but is capable of a standout mode then that is used instead.  If the terminal can overstrike, or  handles  under-
       lining automatically, degenerates to If the terminal cannot underline, underlining is ignored.

       The  -i option causes to indicate underlining by a separate line containing appropriate dashes `-'; this is useful when you want to look at
       the underlining which is present in an output stream on a crt-terminal.

Options
       -i Displays underscoring on separate line containing appropriate dashes (-).

       -t terminal
	  Uses type of specified terminal in place your terminal's type.

Restrictions
       The command usually outputs a series of backspaces and underlines intermixed with the text to indicate underlining.  No attempt is made	to
       optimize the backward motion.

See Also
       man(1), nroff(1), colcrt(1)

																	     ul(1)
All times are GMT -4. The time now is 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy