expand logic for > and <


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting expand logic for > and <
# 1  
Old 08-10-2007
expand logic for > and <

Hi

Input

A12345678901234567890 < A12345678901234567890 AND C12345678901234567890 < D12345678901234567890 AND E12345678901234567890 > F12345678901234567890

If the length of the line at any point exceed more than 60 chars it should come to next line

but it should not break a variable name


Out put should be
A12345678901234567890 < A12345678901234567890 AND
C12345678901234567890 < D12345678901234567890 AND
E12345678901234567890 > F12345678901234567890

Last edited by pbsrinivas; 08-13-2007 at 04:45 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. AIX

Expand LV

Under the df command, one of my logical volumes, /dev/hd4, was showing 100% Used, so I added 2 logical partitions, but its still showing 100% used. Is there a separate command I need to execute to reallocate? (5 Replies)
Discussion started by: markper
5 Replies
Login or Register to Ask a Question
EXPAND(1)								FSF								 EXPAND(1)

NAME
expand - convert tabs to spaces SYNOPSIS
expand [OPTION]... [FILE]... DESCRIPTION
Convert tabs in each FILE to spaces, writing to standard output. With no FILE, or when FILE is -, read standard input. Mandatory arguments to long options are mandatory for short options too. -i, --initial do not convert TABs after non whitespace -t, --tabs=NUMBER have tabs NUMBER characters apart, not 8 -t, --tabs=LIST use comma separated list of explicit tab positions --help display this help and exit --version output version information and exit AUTHOR
Written by David MacKenzie. REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>. COPYRIGHT
Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
The full documentation for expand is maintained as a Texinfo manual. If the info and expand programs are properly installed at your site, the command info expand should give you access to the complete manual. expand (coreutils) 4.5.3 February 2003 EXPAND(1)