Search Results

Search: Posts Made By: bhas85
9,124
Posted By RudiC
Try awk '{gsub ("vijay@gmail.com",...
Try

awk '{gsub ("vijay@gmail.com", "vijay.bhaskar@gmail.com")} 1' $(find /home -name "*.sh")
9,124
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....
2,012
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,478
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:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy