Problem : I havent used RH 5.9 until now. I started with 6 but we have some 5.9 servers. The […]
Tag: grep
How to use ack to search for file name
Problem : I have started using ack which is much faster than grep. However using ack I want to search […]
How to find files that contain a string in its content OR the path?
Problem : Find and grep does not work afaik because I need to create a list of files that satisfy […]
Is there a better way to do this command to find strings in a file excluding special characters?
Problem : Is there a better way to do this command to find strings in a file excluding special characters? […]
Search for files with more than one term (grep, awk?)
Problem : I am using a command like this to find files with the word ‘term’ in them: grep -l […]
Linux output line numbers where string match appears
Problem : what I’m looking to do is boost the command I already have to return line numbers of where […]
Trying to exclude a specific directory from a grep command
Problem : I’ve got a directory that contains hundreds of sub-directories that all have dates as their names, and inside […]
grep and search and replace in linux accepting parameters with /
Problem : I’m trying to find and replace the contents of a file using grep and sed. grep “#!/bin/bash” ./ […]
How to use grep to search for multiple options
Problem : How can I use grep to search for line with either ‘res’ or ‘rep’? i try “grep -e […]
fit grep syntax from linux to solaris
Problem : The following command grep -w ‘^[^#]* machine_VIP’ /etc/hosts | head -1 | awk ‘{print $1}’ works fine on […]