Search Results

Search: Posts Made By: rbmuruga
10,616
Posted By rbmuruga
Hi rdcwayx Then I do not need (date&time)$6,...
Hi rdcwayx

Then I do not need (date&time)$6, $7 and $8 fields. I just need $5 and $9 fields. From the the below

PMLKUP11200_35_0_27813H64 432
PMLKUP11200_35_0_27813H64 8192...
10,616
Posted By rbmuruga
Hi rdcwayx This script helps a lot and does...
Hi rdcwayx

This script helps a lot and does everything but i also want the bytes to be added in the $9 field. The result of your script:
ls -l |awk '{split($9,a,".");print $6, $7, $8, a[1] ,...
10,616
Posted By rbmuruga
Processing files using awk
Hi

I have files in our UNIX directory like the below
-rw-r--r-- 1 devinfo devsupp 872 Sep 14 02:09 IMGBTREE27309_12272_11_1_0_FK.idx0
-rw-r--r-- 1 devinfo devsupp 872 Sep...
2,544
Posted By rbmuruga
New line character issue
Hi

I refered to the other link you asked me to and the below command worked

awk '/^[1-9]/{print ""};{gsub("\"\"", "");printf"%s", $0};END{print ""}' |sed -n...
2,544
Posted By rbmuruga
New line character issue
Hi

I tried using

awk '/^[1-9]/{print ""};{gsub("\"\"", "");printf"%s", $0};END{print ""}' |sed -n 'H;g;/^[^"]*"[^"]*\("[^"]*"[^"]*\)*$/d; s/^\n//; y/\n/ /; p; s/.*//; h'
1,ad,"adc...
2,544
Posted By rbmuruga
New line char issue
When I use

awk '/^[1-9]/{print ""};{gsub("\"\"", "");printf"%s", $0};|sed '/^$/d;/\"$/N;/.$/N;s/\n//g;'

this eliminates carraige returns(new line character) and eliminates empty lines but...
2,544
Posted By rbmuruga
New line character issue
I do not know wht the moderetaors are changing the data I send but here is a sample data and I want to eliminate new line charatcters and this has to be in single line

"1
Entering the serial...
2,544
Posted By rbmuruga
New line character issue
Yes, they are. The entire below data is a single record.

11/18/2009 9:41:48|11/4/2009 0:00:00|"1-237319574"|||"8"|"5"|"4"|"7"|"7"|"3"|"10"|"8"|||"8"|"9"||"
1. Entering the serial number a second...
2,544
Posted By rbmuruga
New line characted issue
Hi

Inorder to eliminate new line characters and the empty lines from our data and I used the below syntax :
awk '/^[1-9]/{print ""};{gsub("\"\"", "");printf"%s", $0};END{print ""}' | sed...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 01:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy