Search Results

Search: Posts Made By: EAGL€
1,673
Posted By EAGL€
No way Rudic, it's not BSD: ...
No way Rudic, it's not BSD:

[sscm@testvm3:/export/home/sscm/ ] $ date -d-14day
date: illegal option -- d
date: illegal option -- -
date: illegal option -- 1
date: illegal option -- 4
date:...
1,673
Posted By EAGL€
Calculate specific past date
Hello All,

I use date like the following in one of my scripts:

date=`TZ=GMT+2 date +%Y-%m-%d`
=> gives 2016-04-20


I want to use just one argument to my script such as number of days...
8,872
Posted By EAGL€
Thanks a lot Rudic, When I tested I saw that...
Thanks a lot Rudic,

When I tested I saw that slightly the columns are shifted as the following (Event Types must be 2001; and all columns should be shifted to right side similarly):

-bash-4.1$...
8,872
Posted By EAGL€
It was long input and was on my phone not...
It was long input and was on my phone not computer thats why didnt have input, thanks for asking for it Rudic..
36087|20160309115933427|20160309115933481|54|2001|||-3|114|Buiness...
8,872
Posted By EAGL€
I want to print Offernames like AAA, BOB.. Which...
I want to print Offernames like AAA, BOB.. Which I can strip from 14th field of gunzipped input files by using the SED command I have displayed above
14th field is actually complicated json field ...
8,872
Posted By EAGL€
Using sprintf and system command in awk
Hello Friends,

I'm trying something hard (for me) to create a report script,normally the following script works:

Echos are just for cosmetic touch,
echo -n...
1,735
Posted By EAGL€
Thanks for the suggestions mates, I have...
Thanks for the suggestions mates, I have concluded the task liek the following:


echo -n...
1,735
Posted By EAGL€
Printing awk outputs
Hello All,

I have the following command which works partially:

gzcat *2016-03-25_*gz | gawk -F"|" '
BEGIN{format = "%-10s %-13s %-17s %-35s\n";
printf format,...
892
Posted By EAGL€
It would start from 2016-03-15_00 to...
It would start from 2016-03-15_00 to 2016-03-15_23 and yes I would like to group them hourly.. However I would like to create something generic for example when I run this command:

date=`TZ=GMT-2...
892
Posted By EAGL€
Manipulating Data Records for reporting
Hello All,

I have Data Records (DRs) with the following format:
...
814
Posted By EAGL€
Thanks Rudic, I will remove the semicolon but...
Thanks Rudic, I will remove the semicolon but when I embrace the two split and print statements with "{}" it does give nothing, did I misunderstand?

Right I need to check also NR==2, 3 and 4 too...
814
Posted By EAGL€
Manipulate application status with awk
Hello Friends,

I am stuck with a silly (maybe simple) awk issue. I need to check some applications status and print to a file..

my application "rfe" status is like the following. I need to...
15,568
Posted By EAGL€
Sorry about that mysql, I'm working on sqlplus of...
Sorry about that mysql, I'm working on sqlplus of oracle :)

so is it something like the following? Didn't think about providing awk the file which includes numbers; brilliant

------...
15,568
Posted By EAGL€
Delete db records from shell script
Hello Mates,

I would request your help in a shell script,

simply I need to delete some matching db table records (rows) to ones in a given file:


------------------------------
#!/bin/bash...
1,463
Posted By EAGL€
Performance of calculating total number of matching records in multiple files
Hello Friends,

I've been trying to calculate total number of a certain match in multiple data records files (DRs).

Let say I have a daily created folders for each day since the beginning of...
5,330
Posted By EAGL€
Oki Let me provide you more detailed input so...
Oki Let me provide you more detailed input so that it could give you a clue what im trying to do:

bash-3.00$ for j in $(find . -type d -name "`date +%Y%m%d`" 2>/dev/null);do echo $j ;done...
5,330
Posted By EAGL€
Assign awk gsub result to a variable
Hello,

I have searched but failed to find what exactly im looking for,

I need to eliminate first "." in a output so i can use something like the following

echo "./abc/20141127" | nawk...
Forum: Solaris 05-26-2014
62,693
Posted By EAGL€
I did not know this command before but it really...
I did not know this command before but it really looks good to me.

I could run it as root user and it gave me an output like the following, however i may not be allowed to use root user permission...
Forum: Solaris 05-26-2014
62,693
Posted By EAGL€
Memory Usage check
Hello Friends,

I need to check memory usage & availability before I could run a program if there is enough memory is left or not, so how could i achieve this? Which command output i should rely...
1,179
Posted By EAGL€
awk print output problem
Hello friends,

I have written a script and i need to add some part into it so that i could print out more results depending on more conditions,

This is the core part of the script which does...
2,754
Posted By EAGL€
Thanks a lot Rudic, that was what exactly i...
Thanks a lot Rudic, that was what exactly i wanted,

Now i can use a second file to read properties from.

If it is suitable me asking another thing about the printing results, i would like to...
2,754
Posted By EAGL€
Hello Srinishoo, My scripts sums up NF-1 and...
Hello Srinishoo,

My scripts sums up NF-1 and calculate average value of processing times from logs, so the output is like the following ( i got this from production server):

Average Process...
2,754
Posted By EAGL€
Read values from second file in awk
Hello Friends,

I have written a script like the following, which finds some logs and fetchs some desired rows and then calculate average processing time of a spesific application.

if [ "$#" -ne...
3,589
Posted By EAGL€
Hello Vgersh, PLease don't mind me asking...
Hello Vgersh,

PLease don't mind me asking about the "n" in this split operation, I would like to learn it,

n=split($i,a,":")
i is 4,5,6,7,8 in our case (first case i used),
for $4, $5,...$8...
2,390
Posted By EAGL€
this way is really more clear, understandable for...
this way is really more clear, understandable for me Scrutinizer, thanks!

Corona so its a lazy (or shorter) way of using variables :)
Showing results 1 to 25 of 320

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