Search Results

Search: Posts Made By: victor369
3,486
Posted By bartus11
Do you have GNU version of sed? sed -i...
Do you have GNU version of sed? sed -i 's/\(TABLE._DATE=\).*/\1your_parameter/' file
3,486
Posted By bartus11
Try: perl -i -pe...
Try: perl -i -pe 's/(?<=TABLE._DATE=).*/your_parameter/' file
Make a backup of your file first ;)
18,928
Posted By mirni
Like this? oldDate=30-jan-2011 ...
Like this?

oldDate=30-jan-2011
newDate=31-dec-2011
sed 's/'$oldDate'/'$newDate'/' myFile


Since there are no metacharacters in your strings, you could do even simpler:

sed...
4,415
Posted By yinyuemi
sed 's/\(.*_vw_\)\(.*\)/\2/' urfile
sed 's/\(.*_vw_\)\(.*\)/\2/' urfile
4,415
Posted By yinyuemi
try: sed 's/\(.*\)\(_vw_.*\)/\1/' urfile
try:
sed 's/\(.*\)\(_vw_.*\)/\1/' urfile
2,378
Posted By joeyg
One approach
$ echo $samplet
dwh123 2563 4562 4236 1236 78956 12394 4552 dwh192 2656 46536 231326 65652 6565 23262 16625623 dwh956 2365 12232 46656 56522 464646 66262 65522

$ echo $samplet | sed...
Showing results 1 to 6 of 6

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