So would you please tell me how to put the input and output filename.
Since when I typed --awk ' $0 ~ "^Grid" {print > "n1"; getline; getline; print >"n1"}' inputfile.txt-- there was nothing happening on the file, still exactly the same.
Many thanks,
su_in99
That was there already in the command I had posted!
Now I had modified the command for the filenames.
Before the command is executed,
it assumes your input file name is inputfile.txt ( or based on the input file name change the inputfile given to the command )
output of the command will be available in the file named outputfile.txt
I have a file which has about 500K records and I need to delete about 50 records from the file. I know line numbers and am using
sed '13456,13457,......d' filename > new file.
It does not seem to be working.
Any help will greatly appreciated. (5 Replies)
Input:
a
b
b
c
d
d
I need:
a
c
I know how to get this (the lines that have duplicates) :
b
d
sort file | uniq -d
But i need opossite of this. I have searched the forum and other places as well, but have found solution for everything except this variant of the problem. (3 Replies)
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
Hi
This is a sample of my data file.
##field PH01000000 1 4869017
#PH01000000G0240
WWW278545G0240 P.he_model_v1.0 erine 119238 121805 . - . ID=PH01000000G0240;Description="zinc finger, C3HC4 type domain containing protein, expressed"... (7 Replies)
Hello,
I have file of more than 10000 lines.
I want to delete 40 lines after every 20 lines.
e.g from a huge file, i want to delete line no from 34 - 74, then 94 - 134 etc and so on.
Please let me know how i can do it.
Best regards, (11 Replies)
Hi,
I have a txt document having a format like this:
DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:34
DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:32
DATA1 | DATA2 | DATA3 | 23-JAN-20 23:41:30
...
DATA1 | DATA2 | DATA3 | 23-JAN-20 22:35:31
DATA1 | DATA2 | DATA3 | 23-JAN-20 22:30:34
DATA1 | DATA2 |... (1 Reply)
Discussion started by: gc_sw
1 Replies
LEARN ABOUT MOJAVE
native2ascii
native2ascii(1) General Commands Manual native2ascii(1)NAME
native2ascii - native to ASCII converter
SYNOPSIS
native2ascii [ options ]
[ inputfile [outputfile]]
DESCRIPTION
The Java compiler and other Java tools can only process files that contain Latin-1 or Unicode-encoded (udddd notation) characters.
native2ascii converts files that contain other character encoding into files containing Latin-1 or Unicode-encoded charaters.
If outputfile is omitted, standard output is used for output. In addition, if inputfile is omitted, standard input is used for input.
OPTIONS
The following options are supported:
-encoding encoding_name
Specifies the encoding name that is used by the conversion procedure. The default encoding is taken from system property file.encod-
ing. The encoding_name string must be one taken from the first column of the table of supported encodings in the Supported Encodings
document:
http://java.sun.com/j2se/1.5/docs/guide/intl/encoding.doc.html
-reverse
Performs the reverse operation: converts a file with Latin-1 or Unicode-encoded characters to one with native-encoded characters.
-Joption Pass option to the Java virtual machine, where option is one of the options described on the man page for the java applica-
tion launcher, java(1). For example, -J-Xms48m sets the startup memory to 48 megabytes. It is a common convention for -J to
pass options to the underlying virtual machine.
22 Jun 2004 native2ascii(1)