Search Results

Search: Posts Made By: bhas85
8,804
Posted By jim mcnamara
Running find against / (root) is not great idea. ...
Running find against / (root) is not great idea.

Run your code as a non-privleged user.

Try
find / -type f -name '*.sh' -exec grep -l 'vijay@gmail.com' {} \; > ~/mylist
then check the list....
8,804
Posted By RudiC
Try awk '{gsub ("vijay@gmail.com",...
Try

awk '{gsub ("vijay@gmail.com", "vijay.bhaskar@gmail.com")} 1' $(find /home -name "*.sh")
1,949
Posted By Corona688
Users can't delete threads. I've dealt with it. ...
Users can't delete threads. I've dealt with it. Thank you.
1,249
Posted By Franklin52
If your grep doesn't support the -A and the -B...
If your grep doesn't support the -A and the -B options you can try:
awk 'NR==FNR{if($0 ~ /error/){n=NR}next}FNR > n-4 && FNR < n+4' /home/file.txt /home/file.txt
Showing results 1 to 4 of 4

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