Search Results

Search: Posts Made By: GermanJulian
2,738
Posted By GermanJulian
On new servers rsync does not work
Hi,

we have a script that populates some variables and basically does an rysnc which has always worked and we have deployed on 6 servers.
Now we got 2 new solaris servers with the same Solaris...
1,390
Posted By GermanJulian
will try tomorrow when I go to work. Holiday...
will try tomorrow when I go to work. Holiday today in the UK :)

---------- Post updated 08-30-11 at 03:49 PM ---------- Previous update was 08-29-11 at 08:59 PM ----------

Hi,

it works :b: ...
1,390
Posted By GermanJulian
unfortunately I do not have the ksh shell so I do...
unfortunately I do not have the ksh shell so I do not have a typeset option though it does look interesting.

also what does mMM=${monS} do?

I think mMM is a specific month format but what does...
1,390
Posted By GermanJulian
Script to search specific folders dates /mm/dd/ structure
Hi,
I have a script that handles a huge amount of log files from many machines and copies it into a SAN location with the following directory structure:
/SAN/machinenames/yyyy/m/d
so for example...
20,969
Posted By GermanJulian
Bash script to compare two lists
Hi,

I do little bash scripting so sorry for my ignorance.

How do I compare if the two variable not match and if they do not match run a command.

I was thinking a for loop but then I need...
1,660
Posted By GermanJulian
SED help, small problem
Hi,

I have this sed command to grep a date from a filename for a script we have.
I am awful with sed so I need help.
Sometimes it works fine but other times it does not, see below.

works
...
21,237
Posted By GermanJulian
So after spending hours being stuck at this I...
So after spending hours being stuck at this I found out that the best way to do this is to convert the filename date into unix time and then simple do a bigger then smaller then if statement with the...
11,018
Posted By GermanJulian
thanks :b: ls -R1 /EMEA/*/*/http_log*.gz...
thanks :b:

ls -R1 /EMEA/*/*/http_log*.gz |sed -e 's#.*/##' -e 's#[^0-9][^0-9]*[.]\([0-9][0-9.][0-9.]*\)[.].*#\1#' | cut -d. -f3,4,5 | tr -d "."
1,489
Posted By GermanJulian
Bash scripting not working due to " or ' ?
My scripts works fine apart when I let users enter a "grep string" so they can specify what to grep for.

Basically if the user wants to enter for example
grep "facebook.com | grep "login"

the...
11,018
Posted By GermanJulian
Hi, thanks for all your help. I like the sed...
Hi,

thanks for all your help. I like the sed solution a lot and my ueber script is nearly finished however now I have one more file with a different structure
...
11,018
Posted By GermanJulian
oh sorry did not make it clear that I am...
oh sorry

did not make it clear that I am running a find command and there might be different directories before the actual filename so a cut will not work
11,018
Posted By GermanJulian
Cutting out text from specific portion on filename
Hi,

how do I go about cutting out the first numeric characters after the word "access"?

access1005101228.merged-00.15.17.86.d8.b8.log.gz
21,237
Posted By GermanJulian
mhh I can not get it to work. The last example I...
mhh I can not get it to work. The last example I do not even understand?

For example lets just do files which are called access, e.g.

access1004202232.merged-00.21.9b.94.43.a1.log.gz

and I...
21,237
Posted By GermanJulian
ahhh I see what you did :cool: will try the...
ahhh I see what you did :cool:

will try the code this weekend.

The date range could be for several month... but lets see if I can figure that one out myself with the help of google :cool:
21,237
Posted By GermanJulian
Converting date string to different formats
Sucks to be a noob :o

See my last post for solution

I have 3 different log formats and the filenames contain a date. I am trying to write a script to grep these files between two date ranges. ...
2,229
Posted By GermanJulian
simple script but am stuck
hey i am a bit stuck here. i just started work experience and i need to create a simple script which delete all files in a specify folder which are older then 2 days.
:mad: i tried but it never...
Showing results 1 to 16 of 16

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