Search Results

Search: Posts Made By: Schubi
1,961
Posted By SriniShoo
Below code will create the filename ".tmp" files...
Below code will create the filename ".tmp" files with the required changes.
for i in ~/Library/Calendars/*.calendar/Events/*.ics
do
awk 'BEGIN{FS = OFS = "T"} {if($0 ~ /^DTSTART/ || $0 ~...
1,961
Posted By Scrutinizer
The code is for BSD sed which is used on OSX. You...
The code is for BSD sed which is used on OSX. You can use it without .bak, but this is what the man page says:

-i extension
Edit files in-place, saving backups with the...
1,961
Posted By Subbeh
Which OS and version of sed do you use? You...
Which OS and version of sed do you use?

You could try this:
find . -type f -iname *.ics -exec sed -i '/^DT\(START\|END\)/s/[0-9][0-9]$/00/;s/\r//' {} \;
1,961
Posted By Scrutinizer
Also test this out first and try: for file in...
Also test this out first and try:
for file in ~/Library/Calendars/*.calendar/Events/*.ics
do
[ -f "$file" ] || continue
sed -i ".bak" -e '/^DTSTART/ba' -e'/^DTEND/ba' -e 'p;d' -e :a -e...
2,152
Posted By Don Cragun
Try this as a complete replacement for your...
Try this as a complete replacement for your script:
#!/bin/bash
##### Begin
DATE=$(date +'%Y%d%m')

##### Fetching weather data, adding specific calendar data, and cleaning up
(if curl...
Showing results 1 to 5 of 5

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