Search Results

Search: Posts Made By: Aswex
901
Posted By Aswex
Replace Content
Hello all ; )

I'got a file1 with a lot of emails like :

fistname.lastname@domaine1.comAnd another file2 with emails like

fistname.lastname@domaine2.ct.netI need a shell script that will read...
1,337
Posted By Aswex
Hello, is there any way to just replace the...
Hello,

is there any way to just replace the new value with sed or awk without to create a temporary file ?

Thanks
1,337
Posted By Aswex
Hello, sorry to be confused. I am trying to...
Hello,

sorry to be confused. I am trying to be as clear as I can :

I am trying the replace numbers by numbers in a log file that looks like :

dir2:123


I need to avoid to change...
1,891
Posted By Aswex
Keep last directory from path
Hello,

I am looking for a command that will give me the last directory name from a path

ex 1 :

/dir1/dir/2/dir3/

output needed

dir3


ex 2 :

/dir1/dir/2/dir3/dir4/
...
1,337
Posted By Aswex
Hello RudiC, the output is size in Ko given...
Hello RudiC,

the output is size in Ko given by du -k command.

I am looking for a command that will replace the old size value in log file by the new size. I just need the new value to replace...
1,337
Posted By Aswex
Replace contents of a file
Hello,

I need help to replace a value by a new one.

I've got a script, that will get directory size in ko, then write the size value return in a log file :

The patch is given in crontab,...
836
Posted By Aswex
Script - SUM SIZE
Hello,

I need help. I working a a script that will get back directory size.

I am on linux.

I am using du -sk to get the size of directories.

But, as the script is launch under nagios,...
3,053
Posted By Aswex
Directoy Size - avoid cannot read directory
Hello,

I need to write a script to check directory size on a linux server.

I do not have access to some directories Inside the directory tree so I've got some warning in the output that say...
Forum: Solaris 08-08-2013
1,205
Posted By Aswex
Dear DukeNuke2, I will check my cable and...
Dear DukeNuke2,

I will check my cable and see if I can get a null modem ; )

But, I've read somewhere that if a solaris boot's up with a keyboard and vga attached, the output will go to the...
Forum: Solaris 08-07-2013
1,205
Posted By Aswex
Solaris U10 - Crash OS
Hello,

I an triyng to write an emergency procedure, and I need your help, or point of view.

I trying to find a way to get connected to an U10 Sun Solaris by the serial port to be able to get...
2,582
Posted By Aswex
Thanks Radoulov, It doesn't work for me as...
Thanks Radoulov,

It doesn't work for me as I am getting a LOG file that contain all files like this :


f610_gen_o_t_MASTER_AS_YB_20130324.csv
f610_gen_o_t_MASTER_AS_TT_20130323.csv...
2,582
Posted By Aswex
CUT file name
Hello,

I feel so stupid to not be able to found out how to do this ... I hope you may help me.

here is the file name exemple :


f610_gen_o_t_MASTER_AS_YB_20130324.csv


here is what...
1,925
Posted By Aswex
Thanks PiKK45, but this wont work as all files...
Thanks PiKK45, but this wont work as all files dont have the same name.

The only part that doesn't change is the date stamp in the file name.

And this is the part a need to change in the...
1,925
Posted By Aswex
Renaming files
Hello,

I am looking for a command line that will rename name files :


f700_abc_o_t_MASTERID_AS_AE_20130323.csv


like this


f700_abc_o_t_MASTERID_AS_AE_20130324.csv


The great...
2,057
Posted By Aswex
Hello, The Input was just some lines. In...
Hello,

The Input was just some lines. In fact I used the code

sort -k6.11,6.17 -k 6but the result is not good as expected.

Here is what I getting :


New File: 95106 Oct 23...
2,057
Posted By Aswex
BARTUS11, Thanks a lot for your correction. ...
BARTUS11,

Thanks a lot for your correction.

The code is working perfect, but If I may what mean it ?

-k6.11,6.17 -k 6In same time, how to execute the PERL code in shell script ? There is a...
2,057
Posted By Aswex
Dear bmk, dear bakunin I am sorry but your...
Dear bmk, dear bakunin

I am sorry but your code are not working as expected.

Don't worry I am not blaming you. I am blaming me to not be able to do it by myself. I did try with "SORT" but all...
2,057
Posted By Aswex
Sort Date YYYYDDD
Hello,

I am still in trouble to sort log file in order by date as (YYYYDDD).

INFO :
YYYY = Year
DDD = Day in the year 001 for 1st January

Here is Input


New File: 95106 Oct 21...
1,404
Posted By Aswex
Thanks to all for your quick reply. Your code is...
Thanks to all for your quick reply. Your code is working perfect.

Thanks ; )

If just you may time to explain, that would be great for me ... sort -t_ -n -k 5.5,5.7

thanks
1,404
Posted By Aswex
Sort file by day of year
Hello,

It's a shame to not be able to do what I need, but I am sure you will :

Here is what I have in my log file :


New File: 95106 Jun 6 48 TAG__KSO__2012092_0.TAB
New File: 95106 Mar 26...
1,699
Posted By Aswex
Dear Rudic, thanks a lot for your help, but...
Dear Rudic,

thanks a lot for your help, but what do you mean by :


For the size comparison you may need to ensure the two fields to be numerically compared, e.g. by adding a 0 to each field. ...
1,699
Posted By Aswex
FTP Log File
Hello,

I need help to check content of ftp log files. I forgot to say that I am on Solaris 9. I am using KSH.

I have 2 log files.

Here is an example of content :

LOG File from 21 October...
1,137
Posted By Aswex
Hi, I don't really know PERL, so I rather go...
Hi,

I don't really know PERL, so I rather go for something that will improved my gaps. I hope you will understand.

Thanks

---------- Post updated at 04:24 PM ---------- Previous update was...
1,137
Posted By Aswex
Thanks bartus11 but I forget to mention...
Thanks bartus11

but I forget to mention that I can't use PERL, I will go for sed or anything else (except PERL).

Sorry.
1,137
Posted By Aswex
format log file
Hello,

I am on solaris [ KSH ]

here is what I have


*****LIST OF ATTRIBUTS FROM FILES*****
FILE='/N1B/2002/05/ACL1B_2002_05_01_B_00.TAR ...
Showing results 1 to 25 of 174

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