Hi All,
I would like my code to be able to print out the whole line if 1st field has a dot in the number. Sample input and expected output given below.
My AWK code is below but it can;t work, can any expert help me ?
Thanks in advance.
{if ($1 ~ /*\.*/) { print $0 }}
Input:
... (2 Replies)
Friends,
I have .txt file with 3 millions of rows.
File1.txt
ABC1|A|ABCD1|XYZ1
ABC2|P|ABCD2|XYZ2
ABC3|A|ABCD3|XYZ3
ABC4|P|ABCD4|XYZ4
If second field has value P then print the entire line.
Thanks in advance for your help,
Prashant (4 Replies)
Hi all,
I got several lines line this
a b c d e 1 e
a 1 c d e 3 f
a b c 1 e 8 h
a b c d e 1 w
a 1 c d e 2 w
a b c d e 1 t
a b c d e 7 4
How can I print the line if 1 is the field one before the last field?
Basicly this 2 field ?
a b c d e 1 e
a b c d e 1 t
The file I got is... (7 Replies)
Similar question... I have a space delimited text file and I want to only print the lines where the 3rd word/field/column is equal to "01"
awk '{if $3 = "01" print $0}'
something like this.
I meant to say:
only print line IF 3rd field is 01 (2 Replies)
plz help me!!
I have this file ,
3408 5600
3796 6035
4200 6285
4676 0
40 1554
200 1998
652 2451
864 2728
1200 0
I want it like if $2==0,replace it with field from the previous line+500
say here the o/p would be like
3408 5600
3796 6035
4200 6285... (16 Replies)
Hi Guys,
I have the file
---
HOST_NAME,data_coleta,data_carga,CPU_util,CPU_idle,run_queue,memory,MEMORY_SYSTEM,MEMORY_TOTAL,MEMORY_SWAPIN,MEMORY_SWAPOUT,DISK_READ,DISK_WRITE,DISK_IO,NET_IN_PACKET,
NET_OUT_PACKET... (4 Replies)
Hello,
I have a text file in the below format:
Source Destination State Lag Status
CQA02W2K12pl:D:\CAQA ... (10 Replies)
Discussion started by: pocodot
10 Replies
LEARN ABOUT DEBIAN
expack
expack(1) General Commands Manual expack(1)NAME
expack - manipulate Flex files
SYNOPSIS
expack -a FLEXFILE FILE...
expack -c FLEXFILE FILE...
expack -x FLEXFILE [INDEX]
expack -i MANIFEST
expack -l FLEXFILE
DESCRIPTION
expack is a command-line utility that lets you extract and create Flex files. Flex files are archives (which means that they act as con-
tainers for other files, somewhat like directories) used by Ultima 7 to store most of its data. Note that the names of the original files
are not stored in the Flex -- files are only retrievable by their index.
Modes of operation
-a Add --NOT IMPLEMENTED YET. FUTURE ENHANCEMENT-- This command adds one or more FILEs to the end of FLEXFILE.
-c Create
This command takes one or more FILEs and bundles them into FLEXFILE, overwriting it in the process.
-x Extract
Lets you extract the files contained within FLEXFILE. If INDEX is given only the file at this position will be unpacked, otherwise
all files are extracted. The created files will be named index.u7o.
-i Input
Similar to "Create", this command creates FLEXFILE from a number of input files. However, "Input" takes the names of the input files
from MANIFEST instead of the command line.
MANIFEST must be a list of file names, one per line. The first name is that of the Flex file that is to be created, the rest are the
input files used in building it.
-l List
This command lists the contents of a FLEXFILE. It gives you the number of files contained within the Flex file, as well as the
length of each file.
EXAMPLES
expack -a animals.flx bee.wav
Adds bee.wav to the Flex file animals.flx.
expack -a animals.flx hamster.wav snake.wav donkey.wav
Adds hamster.wav, snake.wav, and donkey.wav to the Flex file animals.flx.
expack -c animals.flx duck.wav cat.wav cow.wav dog.wav
Creates a new Flex file animals.flx containing duck.wav, cat.wav, cow.wav, and dog.wav.
expack -x text.flx 17
Extracts the file at position 17fromtext.flxinto17.u7o.
expack -x text.flx
Extracts all files from text.flx into files named 0.u7o, 1.u7o, 2.u7o, etc.
expack -i wavlist
With wavlist reading:
jmsfx.flx
ant.wav
bee.wav
cat.wav
will create a new Flex file jmsfx.flx consisting of ant.wav, bee.wav, andcat.wav.
expack -l text.flx
Lists the number and lenghts of files contained in text.flx.
BUGS
The "Add" command (-a) does not work yet.
AUTHOR
This manpage was written by Robert Bihlmeyer based on a text by Marc Winterrowd. It may be freely redistributed and modified under the
terms of the GNU General Public License version 2 or higher.
Exult 2002-03-23 expack(1)