Sponsored Content
Full Discussion: Character first registration
Top Forums Shell Programming and Scripting Character first registration Post 302963317 by tricampeon81 on Monday 28th of December 2015 11:21:54 AM
Old 12-28-2015
Character first registration

friends
I have the following code that works perfect

Code:
while read linea
     do


       largo=${#linea}
       echo "largo es///////////: $largo "


      if [ $largo -ne 171 ]
       then
         echo "Longitud De Registro Invalida"
         echo " $linea > ERROR DE LONGITUD"  >>  $PATH_DAT/$ArchSalida
       fi
     done <  ${PATH_DAT}/$ArchPro #while read linea

before this condition

Code:
if [ $largo -ne 171 ]
       then
         echo "Longitud De Registro Invalida"
         echo " $linea > ERROR DE LONGITUD"  >>  $PATH_DAT/$ArchSalida
       fi

I need to ask for the first 2 characters in the record
 

7 More Discussions You Might Find Interesting

1. IP Networking

DNS registration

How can I set up a DNS to host several registered domains on my own computer or where can I find information related with this? Rigo.:confused: (3 Replies)
Discussion started by: rigo
3 Replies

2. Post Here to Contact Site Administrators and Moderators

How to delete registration please?

How do I delete my registration please? (1 Reply)
Discussion started by: amaitland
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Need help with forum registration

i can not register, please help me (1 Reply)
Discussion started by: friender@mail
1 Replies

4. Forum Support Area for Unregistered Users & Account Problems

Problem with registration

When I'm trying to register it says that my e-mail adress )is banned by administrator. Why? Thanks PS The same problem occurs with other 2 adresses I have (1 Reply)
Discussion started by: Mihail
1 Replies

5. Solaris

Solaris 10 without registration

Hello people, I'm a private one and have no a support contract with Oracle, Sun Microsystems. And I want to test the Solaris10 U10 and play with no limit. I can use the Solaris 10 U10 without registration. Or must I obtain a contract to Sun for this test Thanks for the answer greeting ... (4 Replies)
Discussion started by: alkhatw
4 Replies

6. Forum Support Area for Unregistered Users & Account Problems

Registration proposal

Hello. I've been reading the feed via twitter for a long time, but though i'm willing to help, i can't post and register (russia's banned). IP is dynamic, it's (<ip address>) for now. DevOps, RH, python and unix shell scripting. (5 Replies)
Discussion started by: spider_fingers
5 Replies

7. Forum Support Area for Unregistered Users & Account Problems

Registration request.

Hi, i got several questions regarding Solaris 10 configuration which i would like to ask here. Unfortunately Russia is blacklisted so I cannot register the normal way. My IP is: 5.19.nnn.nnn email: <removed> Thank you. (5 Replies)
Discussion started by: nongrato
5 Replies
ppmtosixel(1)						      General Commands Manual						     ppmtosixel(1)

NAME
ppmtosixel - convert a portable pixmap into DEC sixel format SYNOPSIS
ppmtosixel [-raw] [-margin] [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces sixel commands (SIX) as output. The output is formatted for color printing, e.g. for a DEC LJ250 color inkjet printer. If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file. OPTIONS
-raw If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to com- pressed format in which identical adjacent pixels are replaced by "repeat pixel" commands. A raw file is often an order of magni- tude larger than a compressed file and prints much slower. -margin If -margin is not specified, the image will be start at the left margin (of the window, paper, or whatever). If -margin is speci- fied, a 1.5 inch left margin will offset the image. PRINTING
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?. BUGS
Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation. SEE ALSO
ppm(5) AUTHOR
Copyright (C) 1991 by Rick Vinci. 26 April 1991 ppmtosixel(1)
All times are GMT -4. The time now is 08:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy