Search Results

Search: Posts Made By: yahoo
1,221
Posted By yahoo
Say I have a string of the format YYYYMMDD. I...
Say I have a string of the format YYYYMMDD. I want to add n days to it. For example the date is 20130228 and n is 6. SO the new date should be 20130206.
1,221
Posted By yahoo
Please help me days to a date string in PERL
Please help me n days to a date string in PERL. Date is of the format YYYYMMDD

---------- Post updated at 08:56 AM ---------- Previous update was at 08:54 AM ----------

Add n days
30,198
Posted By yahoo
Thanks for your reply!!! Anyone using...
Thanks for your reply!!!

Anyone using cygwin can please confirm if it works
30,198
Posted By yahoo
yes -i option is present. It is working with...
yes -i option is present. It is working with single sed -i

-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)


---------- Post updated at 11:18 AM...
30,198
Posted By yahoo
#!/bin/sh sed -i 's/yes/no/' yes.txt sed -i...
#!/bin/sh
sed -i 's/yes/no/' yes.txt
sed -i 's/why/where/' yes.txt
sed -i 's/when/how/' yes.txt

---------- Post updated at 11:03 AM ---------- Previous update was at 11:03 AM ----------

...
30,198
Posted By yahoo
Thanks for your reply. Even if I use correct...
Thanks for your reply. Even if I use correct format s/old/new/ I am getting this error

---------- Post updated at 10:57 AM ---------- Previous update was at 10:53 AM ----------

When I run...
30,198
Posted By yahoo
sed -i option giving error no such file or directory
I created a shell with sed -i option. It is giving error - No such file or directory

Ex -


sed -i 's/yes/no' yes.txt
sed -i 's/why/where' yes.txt
sed -i 's/when/how' yes.txt

Error -...
Showing results 1 to 7 of 7

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