Search Results

Search: Posts Made By: ainuddin
1,510
Posted By ainuddin
Display LineNo Incase Total Number Of Delimiter Does Not Not matches in a given variable
I have many files .dat extension.

requirement is to display line no
if no of delimiter does not matches in a given variable

lets say

File: REF_BETOS.dat
...
2,726
Posted By ainuddin
Thanks for your help. i used expr before...
Thanks for your help.

i used expr before assigning the RECORD_LENGTH and it worked
RECORD_LENGTH= expr `awk -F"=" '{$sum+=$2} END{print $sum}' DBP_Claims_CFG.ini`;
2,325
Posted By ainuddin
you can move files with awk. awk is filtering...
you can move files with awk. awk is filtering tool.

you can do the same with unix mv command
2,726
Posted By ainuddin
AWK - Line length validation
Hi,
I have requirement where record length is stored in an variable RECORD_LENGTH
Code goes as follows

RECORD_LENGTH=537
the above is arrived from
#RECORD_LENGTH=`awk -F"=" '{$sum+=$2}...
13,036
Posted By ainuddin
/sbin/ifconfig eth0 | grep "inet addr:" | awk...
/sbin/ifconfig eth0 | grep "inet addr:" | awk '/inet addr:/ { print $2 }' | cut -d":" -f2

or
/sbin/ifconfig eth0 | grep "inet addr:" | awk '/inet addr:/ { print $2 }' | awf -F":" '{print $2}'
...
3,068
Posted By ainuddin
I have run the fallowing command against the...
I have run the fallowing command against the input temp file attached.
awk -F"|" '
BEGIN {
print...
4,461
Posted By ainuddin
I have attached input file temp.txt. i am...
I have attached input file temp.txt.

i am trying to run that against my command.
awk -F"|" '
BEGIN {
print...
4,461
Posted By ainuddin
I have tried the fallowing AWK script. did not...
I have tried the fallowing AWK script. did not help me with the correct format.

awk -F"|" '
BEGIN {
print...
4,461
Posted By ainuddin
I have tried the fallowing AWK script. did not...
I have tried the fallowing AWK script. did not help me with the correct format.
awk -F"|" '
BEGIN {
print...
3,068
Posted By ainuddin
I would like to print out all the characters in...
I would like to print out all the characters in all the feilds that are pipe seperated. output should be left justified.
16,570
Posted By ainuddin
Here is another way x=`echo $VAR | awk '{print...
Here is another way
x=`echo $VAR | awk '{print $1}'`
y=`echo $VAR | awk '{print $2}'`
3,068
Posted By ainuddin
Awk reporting. Format the output with left justification for every feild
Fallowing is the input file that is pipe seperated.
is it possible to generated the report that is alligned left justifed as that of sample output.
I apprecitae your help on this.

InputFile...
4,461
Posted By ainuddin
Hi Radouluv,Summer_cherry. Thanks both of...
Hi Radouluv,Summer_cherry.

Thanks both of you it worked.

I am struggling to format the output with awk. i need a report file.

your help on this will be appreciated.


Fallowing is the...
4,461
Posted By ainuddin
Great! Excellent. It worked. However it missed...
Great! Excellent. It worked.
However it missed out very few data. i did that manually.

thanks a lot for your help.
4,461
Posted By ainuddin
Append line that does not contain pipe to it previous line
Hi All,

I have a file which contains data as below
When we see no pipe character in the line. append those lines to the previous line with pipe character till we get the next line with pipe...
Showing results 1 to 15 of 15

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