On 05/30/2011 11:08 PM, Dotan Cohen wrote:
Can grep show the matching lines and the next N lines after a match?
For instance, I have a config file wit hthe following text:
[Tag h1]
foreground=#2e5a03
underline=double
indent=0
weight=PANGO_WEIGHT_BOLD
scale=2.25
I would ideally grep on
On 01/05/2011 12:15 PM, S Mathias wrote:
find duplicate filenames in a folder
find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'
find duplicate filenames in a folder recursively
? how?
eg:
/foo/bar.txt
/foo2/bar.txt
/foo3/bar.txt
t
On 12/13/2010 06:30 PM, Ritika Garg wrote:
I have CentOS5.5 installed in the system. After updating the version of
firefox, the videos are playing on the internet. Earlier the message
flash player download required used to come.
so what? is that a problem? you want your message back?
t
USER1=roland
USER2=dany
USER3=kevin
cp -r /opt/$USER1/test /backup/$USER1
cp -r /opt/$USER2/test /backup/$USER2
$ for user in one two three four; do echo $user; done
one
two
three
four
t
___
CentOS mailing list
CentOS@centos.org
Anas Alnaffar wrote:
From where can I download Centos5.4
Thanks
http://www.centos.org/modules/tinycontent/index.php?id=30
t
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
Ricky Tompu Breaky írta:
Dear my friends...
I want to install Magento but the installer asks me several PHP Add-on:
PHP Extension pdo_mysql must be loaded
PHP Extension mcrypt must be loaded
PHP Extension curl must be loaded
PHP Extension gd must be loaded
Anybody would be so nice to
Hmm. Now I find that *any* rpm or yum command I type in will hang. This
is not good.
tried removing temp files from /var/lib/rpm (afaik __db.*)
t
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
mcclnx mcc wrote:
We have CENTOS 5.2 on DELL server. While I run yum update and yum start
download files. in middle of download there have power surge and computer
reboot.
Does there has way to clean yum download?
Thanks
man yum = yum clean = headers, packages, metadata, dbcache,
You're getting that because -ucountry isn't a valid flag for
mysqladmin. Did you mean to log into the MySQL server as user
country? If so put a space after the -u
mind the difference between mysqladmin and mysql itself.
t
___
CentOS mailing list
mcclnx mcc wrote:
Not all 32 bits applications can run on 64 bits O.S.
ORACLE is one of that. ORACLE web site say very clearly 32 bits ORACLE can
NOT install on 64 bits LINUX O.S. I personal tried to do that several times,
but failed. This include 32 bits ORACLE 10Gr2, ORACLE EBS R12
Tom Brown wrote:
I need PHP with mycrypt support see
http://www.php.net/manual/en/ref.mcrypt.php
i wonder - is this available in the PHP that comes with CentOS 5.3 ?
ever thought of yum search php-mcrypt?
t
___
CentOS mailing list
Tim Ke írta:
Does anyone has experience on how to build php5-cgi from source?
./configure.
make
make install
t
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
Jerry Geis wrote:
I have this line:
ALSA=`aplay --version`
in a script. when I execute the script I get the message
line 187: --version: command not found
$ echo $(aplay --version)
aplay: version 1.0.18 by Jaroslav Kysela pe...@perex.cz
t
configure: error: png library not found. please install libpng
but I check rpm is installed
libpng-1.2.10-7.1.el5_0.1
How can I do?
what do you install?
libpng-devel?
t
___
CentOS mailing list
CentOS@centos.org
Last week I had a lengthy thread in which someone indicated the my SIL
card is a FRAID (don't know if F stands for the F word or Fake, though
it doesn't really matter). I want to replace the controller with a
controller that Linux will see the RAID1 group as a single HD and not
multiple
mcclnx mcc wrote:
how to stop fsck on boot?
1. vi /etc/fstab
2. grub.conf = fastboot
3. touch /fastboot
t
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
CentOS 5.2 x86_64 (kernel
2.6.9-92)
that cant be true
t
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
Matt wrote:
This finds all files modified 5 minutes ago.
find /home/*/ -cmin 5 -type f -mindepth 1 -maxdepth 1
I want to find all files modified 5 or less minutes ago. How do I do
that? find -mtime -1 only works in 24 hour increments.
-cmin -5
t
It doesn't ask if its ok. But
if I type yenter it reports:
Is this ok [y/N]: Downloading Packages:
Then it does nothing. I can't kill it
with CRTL-C, but I killed the yum process
with kill -9 from another window.
I retried it several times; same result.
tried deleting
http://yum.pgsqlrpms.org/reporpms/repoview/pgdg-centos.html
t
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
Tom Brown wrote:
Can anyone help me with the syntax to find last accessed time on a bunch
of dir's - something like show me the files that were last accessed 6
months or more ago?
man find?
t
___
CentOS mailing list
CentOS@centos.org
Sam Drinkard írta:
Subject pretty much says it all. I want the 5.2 without the xen kernel.
I've grabbed bits from 2 different mirrors and they all appear to have
xen on them. It would be very nice if someone could throw some text
into the mirrors file to differentiate the two versions.. Oh
[Sun Nov 16 22:05:38 2008] [error] [client 192.168.0.192] PHP Fatal
error: Class 'ZipArchive'
not found in
/var/www/fraud/html/davesBlog/sites/all/modules/photos/photos.module on
line 1375,
referer: http://davenjudy.org/davesBlog/node/39/photos
The PHP code at line 1375 in photos.module is
Phil Schaffner írta:
Mad Unix wrote:
i need your feedback about this command, it should find a string in
multiple html files in a directory and replace it with a different
string...
find /dir -name *.html -exec sed -i 's/old/new/g' {} \;
Mad Unix,
find /dir -name *.html -exec sed -i -e
You also have to give an extension to the command to get a backup. For
this one it would basically be:
perl -pi.old -e 's/foo/bar/' *.html... in addition to the no recursion
thing
if you dont, the target changes are applied to the source files.
t
I am trying to create a script that takes an entire file,
drops the first 19 characters from each line and creates a new file.
I am missing something easy but I am not seeing it.
Jerry
---
I tried the script below but did not work.
rm output.txt
cat test.txt | \
while read LINE
do
david fritz wrote:
I use the webmail roundcubemail to edit my mail server. after finishing
to configure it and mysql server and I try to connect to the mail
server but i had this message :
unable to connect to the database.
help me please
pretty informative error msg.
can you
david fritz wrote:
i want to configure dns but i don't find the file like named.conf
dns server you mean?
you need the bind rpm installed.
if you need dns client, edit /etc/resolv.conf
t
___
CentOS mailing list
CentOS@centos.org
[EMAIL PROTECTED] írta:
I am looking for something similar to the windows SEARCH FILES comman
with the option files containing ... (that is where I can specify a
string and it will find all files containing that string -- not just having
the string as part of the name but actually containing
Craig White írta:
Is there a command line way to tell me whether a ethernet connection is
100 BaseT or Gigabit Ethernet?
mii-tool
t
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
Andrew Allen wrote:
I want to set up a local mysql server + client (preferably graphical, ie
mysqlgui) so have yum installed both perl-DBI and mysql.i386, both
apparently successfully. However, I can't see what to do next to get
mysqld running, as it doesn't appear in the list of services
(in
Robert Moskowitz wrote:
I am trying to erase an rpm with yum erase. It fails:
service hipfw does not support chkconfig
Removed: hipl-firewall.i386 0:1.0.4.1
Complete!
And it is not removed
If I try with rpm -e, I get the same error message.
So how do I remove this rpm?
--noscripts ?
Paul Bijnens wrote:
What is an alternative X window manager, supported by CentOS,
that has very small memory footprint?
I want to avoid twm, because it defaults to interactive placement when
not giving geometry options. No other requirements.
dwm, fwm, xfce, fluxbox?
ps: your signature is
33 matches
Mail list logo