Search Results

Search: Posts Made By: nadeemrafikhan
1,690
Posted By MadeInGermany
The same with bash builtins: #!/bin/bash x=0...
The same with bash builtins:
#!/bin/bash
x=0 copy=0
while IFS= read line
do
case $line in
"<bean pattern>")
filename=$((++x))_output_ranx.xml
copy=1
echo "writing $filename...
1,690
Posted By Don Cragun
The following seems to do what you want: awk ' ...
The following seems to do what you want:
awk '
$0 == "<bean pattern>" {
copy = 1
outFN = ++count "_input_ranx.xml"
next
}
$0 == "</bean pattern>" {
copy = 0
close(outFN)
next
}
copy...
1,690
Posted By Don Cragun
We obviously have a little bit of a language...
We obviously have a little bit of a language barrier here. I have no idea what "remove the expression receptively" means. So, I do not know what output you want to place into any of your output...
1,690
Posted By Don Cragun
What operating system are you using? What...
What operating system are you using?

What shell are you using?

What have you tried to solve this problem on your own?

What is the name of your input file?

What names should be used for...
5,342
Posted By Aia
Take a look at what SELinux is doing for you.
Take a look at what SELinux is doing for you.
3,423
Posted By drysdalk
Hi, The excerpt of /var/log/maillog which...
Hi,

The excerpt of /var/log/maillog which you posted showed the message being passed from your own system, to another system. You now need to log on to that other system (the one whose IP I've...
2,569
Posted By Scrutinizer
For starters, try something like: awk '{t+=$2}...
For starters, try something like:
awk '{t+=$2} /:[03]0/{print $1,t; t=0}' file
1,443
Posted By jim mcnamara
awk uses double precision arithmetic - which...
awk uses double precision arithmetic - which means on most systems you have 15 digits of precision.

What you are doing is defeating that. Try:

awk -F "|" '{{sum = sum + $11}}...
10,850
Posted By RavinderSingh13
Hello nadeemrafikhan, Welcome to forums,...
Hello nadeemrafikhan,

Welcome to forums, please use code tags for commands/codes/Inputs you are showing in your posts as per forum rules. coming to your query now, in awk we have to use -v option...
Showing results 1 to 9 of 9

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