Sponsored Content
Top Forums Shell Programming and Scripting Remove first NULL Character in Flat File Post 303004683 by simpltyansh on Friday 6th of October 2017 10:48:31 AM
Old 10-06-2017
Remove first NULL Character in Flat File

We have a flat file with below data :

Code:
^@^@^@^@00000305^@^@^@^@^@^@430^@430^@^@^@^@^@^@^@^@^@09079989530

As we can see ^@ is Null character in this file
I want to remove only the first few null characters before string 00000305
How can we do that, any idea. I want a new file without first few null characters before string 00000305.

Output file format required : 00000305^@^@^@^@^@^@430^@430^@^@^@^@^@^@^@^@^@09079989530
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sorting a flat file based on multiple colums(using character position)

Hi, I have an urgent task here. I am required to sort a flat file based on multiple columns which are based on the character position in that line. I am restricted to use the character position instead of the space and sort +1 +2 etc to do the sorting. I understand that there is a previous... (8 Replies)
Discussion started by: cucubird
8 Replies

2. Shell Programming and Scripting

How to remove page breaks from a flat file???

Hi All, I get a flat file with its last field data splitting onto a new line.I got this program from Vgersh which when run would cancatenate the split data back to the end of the previous records.But this program fails when it encounters a page break between the split data and the previous... (5 Replies)
Discussion started by: kumarsaravana_s
5 Replies

3. UNIX for Dummies Questions & Answers

How to remove null characters from file?

I'm trying to remove the null characters from a file and copy it to std output. I'm using emacs and I create the following one line bash file (followed by the error messages): sed -e 's/^@//' <ConfigItemReplicator.install.log /usr/bin/bash: -c: line 0: unexpected EOF while looking for... (1 Reply)
Discussion started by: siegfried
1 Replies

4. UNIX for Dummies Questions & Answers

how to remove the first line from a flat file ?

Hi, I want to remove the first line from a flat file using unix command as simple as possible. Can anybody give me a hand ? Thanks in advance. xli (21 Replies)
Discussion started by: xli
21 Replies

5. Shell Programming and Scripting

Remove somewhat Duplicate records from a flat file

I have a flat file that contains records similar to the following two lines; 1984/11/08 7 700000 123456789 2 1984/11/08 1941/05/19 7 700000 123456789 2 The 123456789 2 represents an account number, this is how I identify the duplicate record. The ### signs represent... (4 Replies)
Discussion started by: jolney
4 Replies

6. Shell Programming and Scripting

Read from Multiple character delimited flat file

Hello Guys I have a multiple character delimited flat file "|~|". when I tried to read the data the "|" character also coming Example I/P file 9882590|~|20111207|~|K03501000063005574033961|~|K|~| Command to get the second column I used awk -F"|~|" ' {print $2}' ... (2 Replies)
Discussion started by: Pratik4891
2 Replies

7. UNIX for Advanced & Expert Users

Insertion of Null Character while writing into file

I have a huge file with record length around 5000 characters. There is an ETL tool datastage which is writing this data to the file(AIX server). At position 4095 i have seen NULL Character(^@). when i am using this command "head -1 file_nm | sed 's/\000//g'" --- the output is displaying... (3 Replies)
Discussion started by: issaq84mohd
3 Replies

8. UNIX for Dummies Questions & Answers

How to remove numeric characters in the flat file

HI, can any one help me please .. i have flat file like qwer123rt ass3242ccf jjk654 kjh838ppp nhdg453ok hdkk34 i want remove numeric characters in the flat file i want output like this qwerrt assccf jjk kjhppp nhdgok hdkk help me... (4 Replies)
Discussion started by: rafimd1985
4 Replies

9. UNIX for Advanced & Expert Users

Remove duplicates in flat file

Hi all, I have a issues while loading a flat file to the DB. It is taking much time. When analyzed i found out that there are duplicates entry in the flat file. There are 2 type of Duplicate entry. 1) is entire row is duplicate. ( i can use sort | uniq) to remove the duplicated entry. 2) the... (4 Replies)
Discussion started by: samjoshuab
4 Replies

10. UNIX for Dummies Questions & Answers

To flat file, append null or space if its length is less than 10

Hi, We receive flat files with fixed width data Now our goal is append from right null or space to each record if the lenght of the record is less than for example 10. for example 123 45 6 0 123 45 123 45 6 123 and output should be 123 45 6 0 123 45**** 123 45 6**... (7 Replies)
Discussion started by: shharrath
7 Replies
NFE(4)							   BSD Kernel Interfaces Manual 						    NFE(4)

NAME
nfe -- NVIDIA nForce MCP Ethernet driver SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device miibus device nfe Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): if_nfe_load="YES" DESCRIPTION
The nfe driver supports PCI Ethernet adapters based on the NVIDIA nForce Media and Communications Processors (MCP), such as the nForce, nForce 2, nForce 3, CK804, MCP04, MCP51, MCP55, MCP61, MCP65, MCP67, MCP73, MCP77 and MCP79 Ethernet controller chips. Supported features include (hardware support provided): o Receive/Transmit IP/TCP/UDP checksum offload o Hardware VLAN tag insertion/stripping o TCP segmentation offload (TSO) o MSI/MSI-X o Jumbo Frames Support for Jumbo Frames is provided via the interface MTU setting. Selecting an MTU larger than 1500 bytes with the ifconfig(8) utility configures the adapter to receive and transmit Jumbo Frames. The nfe driver supports the following media types: autoselect Enable autoselection of the media type and options. 10baseT/UTP Set 10Mbps operation. 100baseTX Set 100Mbps (Fast Ethernet) operation. 1000baseT Set 1000Mbps (Gigabit Ethernet) operation (recent models only). The nfe driver supports the following media options: half-duplex Force half duplex operation. full-duplex Force full duplex operation. For more information on configuring this device, see ifconfig(8). HARDWARE
The nfe driver supports the following NVIDIA MCP onboard adapters: o NVIDIA nForce MCP Networking Adapter o NVIDIA nForce MCP04 Networking Adapter o NVIDIA nForce 430 MCP12 Networking Adapter o NVIDIA nForce 430 MCP13 Networking Adapter o NVIDIA nForce MCP51 Networking Adapter o NVIDIA nForce MCP55 Networking Adapter o NVIDIA nForce MCP61 Networking Adapter o NVIDIA nForce MCP65 Networking Adapter o NVIDIA nForce MCP67 Networking Adapter o NVIDIA nForce MCP73 Networking Adapter o NVIDIA nForce MCP77 Networking Adapter o NVIDIA nForce MCP79 Networking Adapter o NVIDIA nForce2 MCP2 Networking Adapter o NVIDIA nForce2 400 MCP4 Networking Adapter o NVIDIA nForce2 400 MCP5 Networking Adapter o NVIDIA nForce3 MCP3 Networking Adapter o NVIDIA nForce3 250 MCP6 Networking Adapter o NVIDIA nForce3 MCP7 Networking Adapter o NVIDIA nForce4 CK804 MCP8 Networking Adapter o NVIDIA nForce4 CK804 MCP9 Networking Adapter LOADER TUNABLES
Tunables can be set at the loader(8) prompt before booting the kernel or stored in loader.conf(5). hw.nfe.msi_disable Whether or not MSI support is enabled in the driver. The default value is 0. hw.nfe.msix_disable Whether or not MSI-X support is enabled in the driver. The default value is 0. SYSCTL VARIABLES
The following sysctl(8) variables can be used to modify or monitor nfe behavior. dev.nfe.%d.process_limit Maximum number of Rx events to be processed in the event loop before rescheduling a taskqueue. The accepted range is 50 to 255, the default value is 192. The interface does not need to be brought down and up again before a change takes effect. SEE ALSO
altq(4), arp(4), intro(4), miibus(4), netintro(4), pci(4), polling(4), rgephy(4), ifconfig(8), sysctl(8) HISTORY
The nfe device driver first appeared in OpenBSD 3.9, and then in FreeBSD 7.0. AUTHORS
The nfe driver was written by Jonathan Gray <jsg@openbsd.org> and Damien Bergamini <damien@openbsd.org>. The nfe driver was ported to FreeBSD by Shigeaki Tagashira <shigeaki@se.hiroshima-u.ac.jp>. BSD
January 15, 2011 BSD
All times are GMT -4. The time now is 08:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy