Search Results

Search: Posts Made By: makan
9,334
Posted By makan
oic.... thank you for your help Arun_Linux...
oic....

thank you for your help Arun_Linux :)

:: update ::
correction for my own script:
1.
echo "type file source and it full path [e.g: /srv/src/source.csv or "/srv/src dir/my...
9,334
Posted By makan
(SOLVED) [bash] how is proper way to validate user input
hi all,

i have a script that need user input provide all variables that needed to complete a job.

this is my current script:
echo "type file source and it full path [e.g:...
1,189
Posted By makan
thank you for your help :)
thank you for your help :)
1,189
Posted By makan
[SOLVED] creating file and it directory
hello,

is there any command that i can use to create a file and also it directory (if not exist)?

example: <command> /home/admin/testdir/test1.txt
desc: this will create test1.txt under...
5,099
Posted By makan
all, thank you for all your assistants. my...
all,

thank you for all your assistants.
my case is solved now :D
5,099
Posted By makan
[awk] grep a part of filename as entry file
hi all,

i need to combine these files into one csv file.

Bounce_Mail_Event_Daily_Report_01_Jul_2012.csv
Bounce_Mail_Event_Daily_Report_02_Jul_2012.csv...
7,779
Posted By makan
i just back from long holiday... thank you...
i just back from long holiday...

thank you for all your assistant, guys... :)
7,779
Posted By makan
oh... i see... thank you :D now my...
oh... i see...

thank you :D

now my homework is how to modify time format from 12 Hours to 24 Hours
from : 08/10/2012,4:11 PM
to 08/10/2012,16:11

:wall:
7,779
Posted By makan
all, i have create a script #!/bin/sh ...
all,

i have create a script
#!/bin/sh
DATE="`date +%d`_`date +%m`_`date +%y`_`date +%H`_`date +%M`_`date +%S`.log"
ls -lrt *.log | awk '{f=$NF};END{print f}' > latestfile.tmp
awk 'BEGIN {...
7,779
Posted By makan
thank you raj_saini20 for helping me to explain...
thank you raj_saini20 for helping me to explain my issue :)


just found a sed command to remove quote (") characters from a file
sed 's/\x22//g' filename.txt

* thanks to pspad for provide me...
7,779
Posted By makan
oh, ok... when we execute the script on day...
oh, ok...
when we execute the script on day 08/11 the result is:
08/10/2012 17:05,08/11/2012 17:05,,10.10.10.18,10234
08/10/2012 17:05,08/11/2012 17:05,myserver,10.10.10.19,13467

and when we...
7,779
Posted By makan
they are just taken from log, no calculation...
they are just taken from log, no calculation needed.

the idea is pulling data from daily logs and put them into a log file that will be send to other application.
7,779
Posted By makan
hi elixir, actually, they are daily logs....
hi elixir,

actually, they are daily logs. you can assume that mylog1a.log is day 1 log and mylog2a.log is day 2 log for device 10.10.10.18. and it same for mylog1b.log and mylog2b for device...
7,779
Posted By makan
SOLVED - [awk] combine and convert time from log files
dear all,

an awk newbie need your help.... i have log files with this format:

mylog1a.log:
"08/10/2012","5:05 PM"
"Hostname","Device Address","Count"
"","10.10.10.18","10234"

mylog2a.log:...
Showing results 1 to 14 of 14

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