Sponsored Content
Top Forums Shell Programming and Scripting Remove a byte(Last byte from the last line) Post 302284050 by vinayrao on Wednesday 4th of February 2009 03:53:57 PM
Old 02-04-2009
Remove a byte(Last byte from the last line)

Hi All
Can anyone please suggest me how to remove the last byte from a falt file .This is from the last line's last BYTE.
Please suggest me something.

Thank's and regards
Vinay
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

zero byte with String

My program would be creating a file, incase of non data from database it would only able to produce 'END, logically it would be file created by oracle in unix. this file is showing zero byte but actully there are 4 char in file.This is not required, therefore what is command line should be... (0 Replies)
Discussion started by: u263066
0 Replies

2. Programming

Byte Padding

Hi, Can someone explain what is byte padding? For ex: struct emp{ char s; int b; char s1; int b1; long b3; char s3; } What will be the size of this structure? Thanks (6 Replies)
Discussion started by: naan
6 Replies

3. UNIX for Dummies Questions & Answers

How to find if a file is zero byte or not?

hi, How to check if a file or files are of zero bytes and if yes, then to print their names? Ashu (1 Reply)
Discussion started by: er_ashu
1 Replies

4. Shell Programming and Scripting

0 byte file with no name????

Please help me in removing the 2nd file : -rw-rw-rw- 1 fup03a fup03a 9216 Aug 16 00:45 med_delay_log -rw-rw-rw- 1 fup03a fup03a 0 Aug 16 18:04 (5 Replies)
Discussion started by: miltonkeynesguy
5 Replies

5. Programming

Printing out Byte in C

Hi all, Can anyone advise on how to display the data in a byte variable, i.e can i use printf("%s", vairable_name);? Cheers (2 Replies)
Discussion started by: dwgi32
2 Replies

6. Shell Programming and Scripting

Check if 2 files are identical byte-to-byte?

In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server. For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match. Please... (4 Replies)
Discussion started by: krishmaths
4 Replies

7. IP Networking

Total byte

Hi I've a pkts trace and I'm performing some test on it. I'd like to figure out also the numbers of total byte in that trace. Any idea? thanks in advance D. (0 Replies)
Discussion started by: Dedalus
0 Replies

8. UNIX for Advanced & Expert Users

Converting byte array in c?

My project is based on GSM. Some parameters are represented as bytearray.Can any one tell me wats is the equivalent for it in c (1 Reply)
Discussion started by: carolsanjeevi
1 Replies

9. UNIX for Dummies Questions & Answers

Changing a special line and Byte in a random file

Hello I created 3 files by: dd if=/dev/urandom bs=1024 count=1000000 of=./testfile1 dd if=/dev/urandom bs=1024 count=5000000 of=./testfile2 dd if=/dev/urandom bs=1024 count=10000000 of=./testfile3 Now I want to know how to make a change in a specific byte and/or line of theses files? (2 Replies)
Discussion started by: frhling
2 Replies

10. Shell Programming and Scripting

Remove files having 0 byte or only header

Hi Team, I'm looking for a command which removes files having 0 byte of having only header line (1 line). My ETL process generates these files. Few files are not having header, in that case if no data from source, it will be 0 byte and few files are having header, in that case if no data from... (7 Replies)
Discussion started by: ace_friends22
7 Replies
ASYNC(3)						     Library Functions Manual							  ASYNC(3)

NAME
async - framing for a serial line to Datakit SYNOPSIS
ctlfd = open(".../ctl", ORDWR); write(ctlfd, "push async", 10); DESCRIPTION
This is not a device, but rather a stream module (see stream(3)) that can be pushed onto a stream. This module provides the framing neces- sary to treat a serial line as a Datakit trunk. It is usually pushed onto a stream before the dkmux module. The frame includes a CRC. Any received frames with an incorrect CRC are discarded. The format of a message upstream of the module is: channel # low byte channel # high byte control byte (0 means none) data bytes The format of a frame is: 0x7d 0x7d channel # low byte channel # high byte crc low byte crc high byte 0x7d 0x7d All control bytes in the frame are preceded by a 0x9d byte. All 0x9d and 0x7d bytes in the data are followed by a 0x00 byte to distinguish them from framing or control specifiers. SEE ALSO
stream(3), cons(3), dk(3) SOURCE
/sys/src/9/port/stasync.c ASYNC(3)
All times are GMT -4. The time now is 11:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy