I have a script which retrieves certain fields from a text file using awk. The delimiter used is white space.
cat /home/eis/boss/OPS|while read LINE
do
crdno=`echo $LINE | awk '{print $1}'`
atm=`echo $LINE | awk '{print $2}'`
seq=`echo $LINE | awk '{print $3}'`
amount=`echo $LINE | awk... (3 Replies)
I have a file as:
A,B,C,D,E
G,H,I,J,K
I need to find if fourth field is blank or has a space and print that line to other file.
I tried using awk but am not getting the desired result.
Pls help. (6 Replies)
Hi,
I have a huge text file. It looks like
abcde bangalo country 12345 lastfield
i want to get first 3 characters from field1 and first 3 characters from field 2 and insert the result as a new field. example the result should be:
abcde bangalo abcban country 12345 lastfield
Please... (4 Replies)
Hi,
I have a file like this
A Bob
A Sam
A John
B David
C Paul
C Sandra
If the consecutive field values in column one is same, then concatenate the corresponding strings.
So, I need an output like this,
A Bob_Sam_John
B David
C Paul_Sandra
I usually work with excel but... (3 Replies)
i have file A as below contents
---------------------------
Use descriptive thread titles when posting.
For example, do not post questions with subjects like
"Help Me!", "Urgent!!" or "Doubt".
For example, do not post questions
For example, do not deliminated.
output file as below:... (2 Replies)
Hello all,
Maybe you can help me with an awk script to get what I need.
I have the input file with format below:
REQUEST|79023787741690|738227864597|985
REQUEST|79024002151717|738229423534|985
REQUEST|79024002151717|738229423534|*985
NDS-REQUEST|79024002151717|738229423534
... (4 Replies)
Here's a sample of the data:
NAME BIRTHDAY SEX LOCATION AGE ID
Jim 05/11/1986 M Japan 27 86
Rei 08/25/1990 F Korea 24 33
Jane 02/24/1985 F India 29 78
I've been trying to sort files using the... (8 Replies)
Thank you for 4 looking this post.
We have a tab delimited file where we are facing problem in a lot of funny character. I have tried using awk but failed that is not working.
In the 5th field ID which is supposed to be a integer only of that file, we are getting corrupted data as below.
I... (12 Replies)
Bash Shell/Oracle Linux 6.4
Following is an ls -lh output. Files which are equal to or higher than 1Gigabytes will displayed with G in the 5th column of the output.
I am trying to find all files which are equal to or higher than 1G
File sizes are shown in the 5th column. So, I tried cut -d'... (7 Replies)
I have requirement to print latest record from file based on multiple columns combination.
EWAPE EW1SLE0000 EW1SOMU01 ABORTED 03/16/2015 100004 03/16/2015 100005 001
EWAPE EW1SLE0000 EW1SOMU01 ABORTED 03/18/2015 140003 03/18/2015 140004 001
EWAPE EW1SLE0000 EW1SOMU01 ABORTED 03/18/2015 220006... (1 Reply)
Discussion started by: tmalik79
1 Replies
LEARN ABOUT OSF1
vfragpg
vfragpg(8) System Manager's Manual vfragpg(8)NAME
vfragpg - prints a single header page of a frag file
SYNOPSIS
/sbin/advfs/vfragpg special page_LBN
OPERANDS
Specifies the block special device name, such as /dev/disk/dsk2c. Specifies the logical block number of the page.
DESCRIPTION
The vfragpg command allows you to see the structure of a single header page in a frag file.
Use showfile -x /usr/.tags/1 to locate the logical block number of the page.
RESTRICTIONS
You must have root user privileges to access this command.
EXAMPLES
The following example shows the headers for the frag file with logical block number 10672 on the device /dev/disk/dsk3a: # vfragpg
/dev/disk/dsk3a 10672
self 0 nextFreeGrp -1 fragType 6 freefrgs 14 ver 1
frag on free list : 43, nextFree = 49 frag on free list : 49, nextFree = 55 frag on free list : 55, nextFree = 61 frag on
free list : 61, nextFree = 67 frag on free list : 67, nextFree = 73 frag on free list : 73, nextFree = 79 frag on free
list : 79, nextFree = 85 frag on free list : 85, nextFree = 91 frag on free list : 91, nextFree = 97 frag on free list :
97, nextFree = 103 frag on free list : 103, nextFree = 109 frag on free list : 109, nextFree = 115 frag on free list : 115,
nextFree = 121 frag on free list : 121, nextFree = -1 #
SEE ALSO advfs(4), showfile(8), shfragbf(8)vfragpg(8)