Search Results

Search: Posts Made By: axed
2,310
Posted By axed
Thanks. I used '@' and it worked. sed...
Thanks. I used '@' and it worked.

sed "s@AAAAA@$DATE@" $BASIC_TMPLT | sed "s/BBBBB/$aDate/" > $out_file
2,310
Posted By axed
sed tricky problem
Hi,

I have a file which contains two strings: AAAAA and BBBBB

I have two variables in my script:
DATE="03/21/2010"
aDate="20100321"

I need to replace string AAAAA with variable $DATE and...
1,473
Posted By axed
Absolutely brilliant! so much done in just three...
Absolutely brilliant! so much done in just three lines. Thanks a lot!
2,007
Posted By axed
Thanks a lot guys. This is very helpful.
Thanks a lot guys. This is very helpful.
1,473
Posted By axed
06252007_template.twj to 06252007_abc.twj
Hi,

I am working in the SH shell. I have a bunch of files in a directory dir/
06252007_template.twj
06262007_template.twj
06272007_template.twj
...

Now I want to duplicate these files to...
2,007
Posted By axed
Thanks again so much.
Thanks again so much.
2,007
Posted By axed
Great! thanks a lot! Wondering if same possible...
Great! thanks a lot! Wondering if same possible using sed with any minor change.
2,007
Posted By axed
Change date 08212010 to 20100821
Hi,

I am working in sh shell. I have a file containing dates in the following format:

08212010
08222010
08232010
...

I would like to quickly convert it to:
20100821
20100822...
Showing results 1 to 8 of 8

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