Search Results

Search: Posts Made By: chaseeem
10,863
Posted By chaseeem
@zaxxon sed 's!\/prod\/!\/devl\/!2' this one...
@zaxxon sed 's!\/prod\/!\/devl\/!2' this one worked for me. would you mind telling me what the '!' & '2' character is for.

@ chella
sed 's/prod/devl/2' filename did to but wasn't able to change...
10,863
Posted By chaseeem
HI thanks for the reply, columns 1,2,3 are not...
HI thanks for the reply, columns 1,2,3 are not constant.. thats why I only need to run sed on the fourth column.

below is a better example, for you to better understand the situation.
now we need...
10,863
Posted By chaseeem
oneliner:sing SED on a specific column
is this possible a one liner sed command.

I have a text file ex.
from :
xxx yyy ZZZ /test/devl/aasdasd.log1
xxx yyy ZZZ /test/devl/aasdasd.log2
to :
xxx yyy ZZZ /test/prod/aasdasd.log1
xxx...
26,635
Posted By chaseeem
If the date on the file name is the same as the...
If the date on the file name is the same as the last modified time you may use.

find . -name '*.log' -mtime +90 -exec rm {} \;



-rw-r--r-- 1 owner group 10322 Jul 14 23:47...
Showing results 1 to 4 of 4

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