0
votes
1answer
66 views

Find and delete line in .htaccess file

I am trying to figure out how could possible a command do search and delete line from .htaccess file . the following line is the line i want to search and delete RedirectMatch ...
2
votes
1answer
63 views

Simple find and copy script for linux [closed]

I'm quite a newbie to scripts in Linux. What im trying to get is a simple script that finds a file by its exact name, then copy that file to a different folder. So Essentially it should work like ...
0
votes
4answers
6k views

How to combine tar command with find

Find command giving this output [root@localhost /]# find var/log/ -iname anaconda.* var/log/anaconda.log var/log/anaconda.xlog var/log/anaconda.yum.log var/log/anaconda.syslog ...
0
votes
1answer
1k views

linux zip and tar all files with a specific extenstion recursively maintaining directory structure

Similar to this question and this question I'd like to make a single compressed tar file (files.tar.gz) that contains all the php files in my webroot and all it's subdirectories, maintaining folder ...
2
votes
2answers
213 views

How can I repair a corrupted “find” binary on CentOS?

When I try using "find" on my system, here's what I get: $ find Segmentation fault (core dumped) I assume the binary got corrupted somehow. How can I repair it? I don't have any other installation ...
3
votes
2answers
5k views

How to use command “find” to list files with specific filename length?

In my folder I got files like /data/filename.log /data/filename.log.1 /data/filename.log.2 /data/filenamefilenamefilename.log /data/filenamefilenamefilename.log.2 I wish to use "find" command to ...
1
vote
2answers
149 views

How to use *nix find command to search for specific files with regular expression

In my centOS there is a lot of log files in my folder /log /log/log.20120308 /log/log.20120308.1 /log/log.20120308.2 /log/log.20120308.3 /log/log.20120308.error /log/log.20120308.error.1 Apparently ...
0
votes
2answers
3k views

How to grep or find exactly what i am looking for?

How can i search a word called "Onderh"? Advanced search i would like to do such as: starting line with "Onderh" or line contain "Onderh". Note: Local Backup directory, contain every days a snapshot ...