Search Results

Search: Posts Made By: mhs
2,464
Posted By Chubler_XL
$ sed -e 's/\([^ ]\)-/\1 -/g' -e 's/-\([^ ]\)/-...
$ sed -e 's/\([^ ]\)-/\1 -/g' -e 's/-\([^ ]\)/- \1/' infile > outfile
4,142
Posted By disedorgue
Ok, In first time, the script should work fine...
Ok,
In first time, the script should work fine if you replace:
sed 's/ //g;s/.*(\([0-9.]\+\)-\([0-9.]\+\))/\1 \2/;s/\./:/g'
by
sed 's/ //g;s/.*(\([0-9.]\+\)-\([0-9.]\+\)).*/\1 \2/;s/\./:/g'
...
4,142
Posted By disedorgue
@Rudic: Maybe, it's not important, but not work...
@Rudic: Maybe, it's not important, but not work with (example) p1( 00 - 02.05 )

Regards.
4,142
Posted By RudiC
Absolutely. Didn't think of that!
Absolutely. Didn't think of that!
4,142
Posted By MadeInGermany
> tmpscript.sh . ./tmpscript.sh rm...
> tmpscript.sh
. ./tmpscript.sh
rm tmpscript.sh
is about the same as
| sh
Verbose dry-run:
| sh -nv
4,142
Posted By RudiC
If you don't have GNU date available, this might...
If you don't have GNU date available, this might work #!/bin/bash
find . -type d -name "p*" |
awk ' {printf "%s \"%s\" ", "mv", $0
$2 = sprintf ("%4.2f",...
4,142
Posted By disedorgue
hi, If your OS is Linux, you can try: ...
hi,
If your OS is Linux, you can try:
#!/bin/bash
find . -type d -name "p*" | while read i
do
read d1 d2 < <(echo "$i" | sed 's/ //g;s/.*(\([0-9.]\+\)-\([0-9.]\+\))/\1 \2/;s/\./:/g')
...
1,949
Posted By bartus11
If email address is always in the first field,...
If email address is always in the first field, then just change m=$0 to m=$1. As for the reseting the counter.. It is done when email address is found on the line, so each counter is "private" for...
1,949
Posted By bartus11
Yes.
Yes.
1,949
Posted By bartus11
/@/{m=$0;p=0}/: if line contains "@", then assign...
/@/{m=$0;p=0}/: if line contains "@", then assign it into variable "m" (in other words assign email address to variable "m") and clear variable "p".
p++ is incrementing variable "p" if condition is...
1,949
Posted By bartus11
I learned AWK from different tutorial in my...
I learned AWK from different tutorial in my native language ;). But you can be safe about the link I gave you. It has everything you need to start learning AWK and it is written in a very simple and...
1,949
Posted By bartus11
This one seems quite good: The AWK Manual - Table...
This one seems quite good: The AWK Manual - Table of Contents (http://www.staff.science.uu.nl/~oostr102/docs/nawk/nawk_toc.html)
1,949
Posted By bartus11
Try: awk '/@/{m=$0;p=0}/Creation Date: Wed, 14...
Try: awk '/@/{m=$0;p=0}/Creation Date: Wed, 14 Aug 2009/{p++}/POP3 Last Login Date: Thu, 01 Jan 1970/{p++}/WebMail Last Login Date: Thu, 01 Jan 1970/{p++}p==3{print m}' file
3,348
Posted By theboogymaster
Yes your right every tool has advantages and...
Yes your right every tool has advantages and disadvantages, Lvm does not by default provide any redundancy, you need to put it on top of a RAID 1 or X.

check this out : The...
3,348
Posted By theboogymaster
Well you can use LVM when ever you want. I'm...
Well you can use LVM when ever you want. I'm managing 150 RedHat servers that use all of them the LVM. Its rely necessary cause if you have oracle databases that grow in size you must be able to add...
Showing results 1 to 15 of 15

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