Search Results

Search: Posts Made By: jimbmac777
3,314
Posted By jimbmac777
This will give you the results you want... ...
This will give you the results you want...

find /home -print | grep \.msh$
The backslash "escapes" the dot so that it is used literally,
and the $ character specifies the end of the string
...
5,676
Posted By jimbmac777
Here is what works as you are requesting...
Here is what works as you are requesting w/explanations...

awk '{sub("004","IND")}{print}' p.txt

Notes:
1. gsub is for replacing ALL occurrences of a pattern in an input line, sub just the...
Showing results 1 to 2 of 2

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